-
Notifications
You must be signed in to change notification settings - Fork 307
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7030 from Checkmarx/fix-storageblob-query
fix(query): added missing case to storage blob query
- Loading branch information
Showing
3 changed files
with
140 additions
and
0 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
105 changes: 105 additions & 0 deletions
105
...zureResourceManager/storage_blob_service_container_with_public_access/test/positive7.json
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 |
---|---|---|
@@ -0,0 +1,105 @@ | ||
{ | ||
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", | ||
"contentVersion": "1.0.0.0", | ||
"parameters": { | ||
"existingVNETName": { | ||
"type": "string", | ||
"metadata": { | ||
"description": "Name of the virtual network to use for cloud shell containers." | ||
} | ||
}, | ||
"existingStorageSubnetName": { | ||
"type": "string", | ||
"metadata": { | ||
"description": "Name of the subnet to use for storage account." | ||
} | ||
}, | ||
"existingContainerSubnetName": { | ||
"type": "string", | ||
"metadata": { | ||
"description": "Name of the subnet to use for cloud shell containers." | ||
} | ||
}, | ||
"storageAccountName": { | ||
"type": "string", | ||
"metadata": { | ||
"description": "Name of the storage account in subnet." | ||
} | ||
}, | ||
"location": { | ||
"type": "string", | ||
"defaultValue": "[resourceGroup().location]", | ||
"metadata": { | ||
"description": "Location for all resources." | ||
} | ||
} | ||
}, | ||
"variables": { | ||
"containerSubnetRef": "[resourceId('Microsoft.Network/virtualNetworks/subnets', parameters('existingVNETName'), parameters('existingContainerSubnetName'))]", | ||
"storageSubnetRef": "[resourceId('Microsoft.Network/virtualNetworks/subnets', parameters('existingVNETName'), parameters('existingStorageSubnetName'))]" | ||
}, | ||
"resources": [ | ||
{ | ||
"type": "Microsoft.Storage/storageAccounts", | ||
"apiVersion": "2019-06-01", | ||
"name": "[parameters('storageAccountName')]", | ||
"location": "[parameters('location')]", | ||
"sku": { | ||
"name": "Standard_LRS", | ||
"tier": "Standard" | ||
}, | ||
"kind": "StorageV2", | ||
"properties": { | ||
"networkAcls": { | ||
"defaultAction": "Deny" | ||
}, | ||
"supportsHttpsTrafficOnly": true, | ||
"encryption": { | ||
"services": { | ||
"file": { | ||
"keyType": "Account", | ||
"enabled": true | ||
}, | ||
"blob": { | ||
"keyType": "Account", | ||
"enabled": true | ||
} | ||
}, | ||
"keySource": "Microsoft.Storage" | ||
}, | ||
"accessTier": "Cool" | ||
}, | ||
"resources": [ | ||
{ | ||
"type": "blobServices", | ||
"apiVersion": "2019-06-01", | ||
"name": "[concat(parameters('storageAccountName'), '/default')]", | ||
"dependsOn": [ | ||
"[resourceId('Microsoft.Storage/storageAccounts', parameters('storageAccountName'))]" | ||
], | ||
"sku": { | ||
"name": "Standard_LRS", | ||
"tier": "Standard" | ||
}, | ||
"properties": { | ||
"deleteRetentionPolicy": { | ||
"enabled": false | ||
} | ||
}, | ||
"resources": [ | ||
{ | ||
"type": "containers", | ||
"apiVersion": "2019-06-01", | ||
"name": "container", | ||
"properties": { | ||
"denyEncryptionScopeOverride": true, | ||
"publicAccess": "Blob", | ||
"metadata": {} | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} |
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