Skip to content

Guidance on accessing Azure Storage Account from Virtual Machine

Notifications You must be signed in to change notification settings

tarynduong/AZ900-Capstone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

AZ900-Capstone

A simple program to pull data from a csv file hosted on a public repo and store into Azure Blob Storage with private endpoint.

image

Conditions:

  • Create a VM that has only a private IP to access to Azure Blob Storage
  • Use RDP to access to the VM
  • Demonstrate accessing the blob by 3 ways: a) shared access (SAS) keys, b) managed identity, c) SAS key retrieved from Azure Key Vault

Azure Resources Needed

NAME TYPE LOCATION
vm Data collection rule Southeast Asia
B1s-demo-vm_OsDisk_1_ad7b24595e1f4bf882b3a89050958aa0 Disk Southeast Asia
kv-demo-sea Key vault Southeast Asia
log-vm Log Analytics workspace Southeast Asia
b1s-demo-vm8 Network Interface Southeast Asia
kv-prvt-epnt.nic.3739f667-0d39-40cc-bb7a-5605fd579981 Network Interface Southeast Asia
st-prvt-epnt-nic Network Interface Southeast Asia
B1s-demo-vm-nsg Network security group Southeast Asia
privatelink.blob.core.windows.net Private DNS zone Global
privatelink.table.core.windows.net Private DNS zone Global
privatelink.vaultcore.azure.net Private DNS zone Global
kv-prvt-epnt Private endpoint Southeast Asia
st-prvt-epnt Private endpoint Southeast Asia
pip-uservpn Public IP address Southeast Asia
pip-vgw-dev-southeastasia-01 Public IP address Southeast Asia
pip-vgw-dev-southeastasia-02 Public IP address Southeast Asia
stcapstonedemo Storage account Southeast Asia
B1s-demo-vm Virtual machine Southeast Asia
B1s-demo-vm-vnet Virtual network Southeast Asia
vgw-dev-southeastasia-01 Virtual network gateway Southeast Asia

1. Use RDP to access to the VM

image

Set up a P2S VPN Gateway connection in the same virtual network of the VM:

How to RDP to my Azure VM with no public IP

Note: If you fail to login to the VM because of auto append email address capability of Windows Security while you want to use the same address pool as given in the example from Microsoft, check solution here

2. Access Azure Storage Account by 3 ways

I write PowerShell script to access to the blob. Check files .ps1

About

Guidance on accessing Azure Storage Account from Virtual Machine

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published