Azure / Azure/azure-rest-api-specs
[BUG]syncOnPremPasswords value not applied
- Dominant language
- TypeSpec
- Stars
- 3.1k
- Forks
- 5.9k
- Avg merge
- 2d 22h
- Merged PRs (30d)
- 444
Description
### API Spec link
https://github.com/Azure/azure-rest-api-specs/blob/main/specification/domainservices/resource-manager/Microsoft.AAD/stable/2021-05-01/domainservices.json
### API Spec version
2022-12-01
### Describe the bug
The provided value from syncOnPremPasswords is not being applied when initially creating the managed domain.
### Expected behavior
syncOnPremPasswords = "enabled" is being applied and shown enabled in the Azure portal.
### Actual behavior
syncOnPremPasswords = "disabled" is being applied and shown enabled in the Azure portal.
### Reproduction Steps
Done with terraform azapi:
```hcl
resource "azapi_resource" "eds" {
type = "Microsoft.AAD/domainServices@2022-12-01"
name = "DomainName"
location = "West Europe"
parent_id = "rg_id"
body = jsonencode({
properties = {
domainConfigurationType = var.domain_configuration_type
domainName = "DomainName"
domainSecuritySettings = {
syncOnPremPasswords = "Enabled" }
ldapsSettings ={
ldaps = false
}
replicaSets = [
{
location = "West Eurpoe"
subnetId = "SubNetID"
}
]
sku = "Enterprise"
syncScope = "CloudOnly"
}
})
timeouts {
create = "60m"
delete = "60m"
}
}
```
### Environment
_No response_
Contributor guide
Research direction
Read specification/domainservices/resource-manager/Microsoft.AAD/stable/2021-05-01/domainservices.json and compare its 2022-12-01 request schema with the Terraform azapi reproduction. Check how syncOnPremPasswords is represented against the reported enabled/disabled behavior. Done means the specification accurately reflects the API contract for the supplied value.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, openapi, terraform
- Domain
- api, cloud
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100