Azure / Azure/bicep

schema problems for Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups@2017-03-01-preview

Open
#4,526 0 comments 0 reactions 0 assignees View on GitHub
provider bug types: swagger inaccuracy
Dominant language
Bicep
Stars
3.6k
Forks
830
Avg merge
1d 21m
Merged PRs (30d)
79

Description

**Bicep version**
Bicep CLI version 0.4.613 (d826ce8411)

**Describe the bug**
Properties sqlServiceAccountPassword, clusterBootstrapAccountPassword and clusterOperatorAccountPassword are reported as missing: The property "sqlServiceAccountPassword" is not allowed on objects of type "WsfcDomainProfile". Permissible properties include "fileShareWitnessPath", "ouPath". If this is an inaccuracy in the documentation, please report it to the Bicep Team.bicephttps://aka.ms/bicep-type-issues

**To Reproduce**

```bicep
resource sqlVmGroup 'Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups@2017-03-01-preview' = {
name: sqlVirtualMachineGroup.name
location: resourceGroup().location
tags: tags
properties: {
sqlImageSku: sqlVirtualMachineGroup.sku
sqlImageOffer: sqlVirtualMachineGroup.image
// read only
//clusterManagerType: 'WSFC'
//clusterConfiguration: 'Domainful'
wsfcDomainProfile: {
domainFqdn: sqlVirtualMachineGroup.domainFqdn
storageAccountUrl: witnessStorageAccount.properties.primaryEndpoints.blob
storageAccountPrimaryKey: witnessStorageAccount.listKeys().keys[0].value
sqlServiceAccount: sqlVirtualMachineGroup.sqlServiceAccount
sqlServiceAccountPassword: sqlServiceAccountPassword
clusterBootstrapAccount: empty(sqlVirtualMachineGroup.clusterBootstrapAccount) ? sqlVirtualMachineGroup.sqlServiceAccount : sqlVirtualMachineGroup.clusterBootstrapAccount
clusterBootstrapAccountPassword: empty(sqlVirtualMachineGroup.clusterBootstrapAccount) ? sqlServiceAccountPassword : clusterBootstrapAccountPassword
clusterOperatorAccount: empty(sqlVirtualMachineGroup.clusterOperatorAccount) ? sqlVirtualMachineGroup.sqlServiceAccount : sqlVirtualMachineGroup.clusterOperatorAccount
clusterOperatorAccountPassword: empty(sqlVirtualMachineGroup.clusterOperatorAccount) ? sqlServiceAccountPassword : clusterOperatorAccountPassword
}
}
}
```

**Additional context**
Add any other context about the problem here.

Contributor guide

Open the contributing guide

Research direction

Start with the Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups@2017-03-01-preview resource schema and its WsfcDomainProfile entry, then compare the accepted properties with the Bicep reproduction. Done means sqlServiceAccountPassword, clusterBootstrapAccountPassword, and clusterOperatorAccountPassword are accepted where the Azure resource definition permits them.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure
Domain
cloud, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.