0

How to get a list Azure storage accounts with sas authentication enabled from all my subscription using AZ-CLI / Rsource Graph KQL / PowerShell scipts?

az account list --query "[].{ResourceGroupName:resourceGroup,Name:name,SASDisabled:enableAzureStorageTransferAnalysis}" --out table | where SASDisabled==false
RithwikBojja
  • 5,069
  • 2
  • 3
  • 7

1 Answers1

0

list Azure storage accounts with sas authentication enabled

Its not possible to get the data about storage accounts where SAS is Enabled. But if you want to get to know if SAS is used in a particular storage account or not, you can use below KQL Query in logs section of Storage Account and I followed Microsoft-Document.

StorageBlobLogs 
| where AuthenticationType contains "SAS"

enter image description here

Because i have got the logs of usage SAS, then you can get to know that in this storage account SAS is used.

RithwikBojja
  • 5,069
  • 2
  • 3
  • 7