0
votes

I'm setting up static website on my Azure Storage by following the documentation here.

I was able to set it up and upload my files but the Primary Endpoint is not showing under Static Website -- see below. Any idea why?

enter image description here

P.S. I'm able to access the website using the full blob URL i.e. https://myaccount.blob.core.windows.net/$web/index.html but there should be an endpoint that is a bit more user friendly which doesn't include $web in it and I don't have to type index.html for the static web pages to come up.

2
Can you share the kind, tier, location of the storage account?Venky
Account Kind: StorageV2 (general purpose v2), Peformance/Access Tier: Standard/Hot and Location: West USSam
can you share what you see in status, replication on overview section of storage account? I'm trying to reproduce the issue.Venky
try this url - https://myaccount.z22.web.core.windows.net/.Venky
Status: Primary: Available and Replication: Locally-redundant storage (LRS). In case it's important, my storage account was v1 and about an hour ago, I upgraded it to v2.Sam

2 Answers

2
votes

I could reproduce this issue. It happens when a storage account is migrated from V1 to V2.

The fix for this is to Refresh the page or navigate away and come back to the storage account. Then you should see the URLs.

you can also get the url using Azure CLI

az storage account show --name myaccount --query 'primaryEndpoints.web'

0
votes

so, in your "Properties" blade you don't see "Static website" section? Update: enter image description here

Update 2: You can get the PRIMARY STATIC WEBSITE ENDPOINT details using Az module with the below command or snippet.

(Get-AzStorageAccount -ResourceGroupName <RESOURCEGROUPNAME> -Name <STORAGEACCOUNTNAME>|select PrimaryEndpoints).PrimaryEndpoints.Web