Azure / Azure/azure-rest-api-specs
[BUG] PUT Microsoft.Databricks/workspaces/{name} does not return back properties.parameters.vnetAddressPrefix
- 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/databricks/resource-manager/Microsoft.Databricks/stable/2024-05-01/databricks.json
### API Spec version
2024-05-01
### Describe the bug
The properties.parameters.vnetAddressPrefix set in workspace creation is not returned back in the GET response. This is problematic for Terraform because it mistakenly thought the state has been modified (the value is deleted).
Refer to https://github.com/hashicorp/terraform-provider-azurerm/issues/30209
### Expected behavior
The properties.parameters.vnetAddressPrefix set in workspace creation should be returned by the GET API.
### Actual behavior
The properties.parameters.vnetAddressPrefix set in workspace creation is not returned by the GET API.
### Reproduction Steps
```bash
az rest -m PUT \
-u '/subscriptions/{subId}/resourceGroups/{rgName}/providers/Microsoft.Databricks/workspaces/{name}?api-version=2024-05-01' \
-b @./path/to/payload.json
```
payload.json
```json
{
"location": "australiaeast",
"properties": {
"managedResourceGroupId": "/subscriptions/*****/resourceGroups/*****",
"parameters": {
"enableNoPublicIp": {
"value": false
},
"prepareEncryption": {
"value": false
},
"requireInfrastructureEncryption": {
"value": false
},
"vnetAddressPrefix": {
"value": "10.141"
}
},
"publicNetworkAccess": "Enabled"
},
"sku": {
"name": "premium"
},
"tags": {}
}
```
### Environment
_No response_
Contributor guide
Research direction
Start in specification/databricks/resource-manager/Microsoft.Databricks/stable/2024-05-01/databricks.json, focusing on the workspace parameters schema and vnetAddressPrefix. Use the provided az rest PUT payload and then inspect the GET response; done means the value set during creation is represented in the GET API response.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, openapi
- Domain
- api, cloud
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100