This repository has been archived by the owner on May 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merging recommendation and fixing query
- Loading branch information
Dost Muhammad
committed
Aug 4, 2023
1 parent
2af9eed
commit 9c2e8ee
Showing
5 changed files
with
16 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 5 additions & 1 deletion
6
docs/content/services/storage/storage-Account/code/st-1/st-1.kql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
resources| where type =='microsoft.storage/storageaccounts' |project name, sku | ||
Resources | where type =~'microsoft.storage/storageaccounts' | ||
| where sku.name =~'Standard_LRS' or sku.name =~ 'Standard_ZRS' | ||
| project recommendationId = 'st-1', name, id, redundancy=sku.name | ||
|
||
|
5 changes: 3 additions & 2 deletions
5
docs/content/services/storage/storage-Account/code/st-2/st-2.kql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
resources | ||
| where type == "microsoft.classicstorage/storageaccounts" | ||
"resources | ||
| where type =~ 'microsoft.classicstorage/storageaccounts' | ||
| project recommendationId = 'st-2', name, id, type" |
4 changes: 3 additions & 1 deletion
4
docs/content/services/storage/storage-Account/code/st-3/st-3.kql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
under development | ||
Resources | where type =~'microsoft.storage/storageaccounts' | ||
| where isnull(properties.accessTier) | ||
| project recommendationId = 'st-3', name, id, accessTier="not defined - GeneralPurpose V1 |
5 changes: 1 addition & 4 deletions
5
docs/content/services/storage/storage-Account/code/st-8/st-8.kql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1 @@ | ||
//Set variable values to approroriate storage account and resource group | ||
$storageAccount = "StorageAccountName" | ||
$resourceGroupName='ResourceGroupName' | ||
Get-AzStorageBlobServiceProperty -ResourceGroupName $resourceGroupName -StorageAccountName $storageAccount | ||
|