[Microsoft.Storage/storageAccounts]: Missing property(s)
- Dominant language
- TypeScript
- Stars
- 108
- Forks
- 44
- Avg merge
- 18h 53m
- Merged PRs (30d)
- 29
Description
### Resource Type
Microsoft.Storage/storageAccounts
### Api Version
2022-05-01
### Issue Type
Missing property(s)
### Other Notes
There is an incorrect error message despite "name" property being present:
"Warning BCP035: The specified "object" declaration is missing the following required properties: "name"."
### Bicep Repro
resource storageAccount 'Microsoft.Storage/storageAccounts@2022-05-01' = {
sku: {
name: sku
}
kind: 'StorageV2'
name: name
location: location
tags: tags
properties: {
defaultToOAuthAuthentication: false
minimumTlsVersion: 'TLS1_2'
allowBlobPublicAccess: allowBlobPublicAccess
allowSharedKeyAccess: true
largeFileSharesState: 'Disabled'
publicNetworkAccess: allowPublicNetworkAccess
allowedCopyScope: 'AAD'
dnsEndpointType: 'Standard'
networkAcls: {
bypass: 'AzureServices'
virtualNetworkRules: []
ipRules: []
defaultAction: 'Allow'
}
supportsHttpsTrafficOnly: true
encryption: {
services: {
file: {
keyType: 'Account'
enabled: true
}
blob: {
keyType: 'Account'
enabled: true
}
}
keySource: 'Microsoft.Storage'
}
accessTier: 'Hot'
customDomain: useCustomDomainForStaticWeb ? {
name: customDomain
useSubDomainName: true
}:{}
}
}
module offerdocuments 'modules/storageAccount.bicep' = {
scope: resourceGroup(backendResourceGroup.name)
name: '${deployment().name}-offerdocuments${environment}${region}${instance}'
params: {
name: 'offerdocuments${environment}${region}${instance}'
location: location
customDomain: 'offerdocuments.${customDomain}'
useCustomDomainForStaticWeb: useCustomDomainForStaticWeb
}
}
### Confirm
- [X] I have read the troubleshooting guide and looked for duplicates.
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the warning using the supplied Bicep repro for Microsoft.Storage/storageAccounts@2022-05-01. Inspect the type definition used for that resource and compare it with the declaration containing name. Done means the valid declaration no longer reports that name is missing.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure
- Domain
- cloud
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100