问题描述
使用Azure资源图资源管理器 https://portal.azure.com/#blade/HubsExtension/BrowseResource/resourceType/Microsoft.Storage%2FStorageAccounts
我需要显示另外一列:
URI or URL to access
Tags
Size
resources
| where type =~ 'Microsoft.Storage/storageAccounts'
| extend allowBlobPublicAccess = parse_json(properties).allowBlobPublicAccess
| project subscriptionId,resourceGroup,name,allowBlobPublicAccess
此PowerShell也完全没有帮助:Get-AzStorageAccount
解决方法
Azure资源浏览器公开的数据中似乎没有显示大小。
对于其余列-您可以使用以下查询来获取它:
resources
| where type =~ 'Microsoft.Storage/storageAccounts'
| extend props = parse_json(properties)
| extend blobEndpoint = tostring(props.primaryEndpoints.blob),allowBlobPublicAccess=props.allowBlobPublicAccess
| project tags,subscriptionId,resourceGroup,name,blobEndpoint,allowBlobPublicAccess