-
Couldn't load subscription status.
- Fork 5.5k
Open
Labels
bugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.
Description
API Spec link
Lines 1667 to 1679 in 48cba86
| "sharingScope": { | |
| "type": "string", | |
| "default": null, | |
| "description": "Set this property to Tenant to allow sharing subnet with other subscriptions in your AAD tenant. This property can only be set if defaultOutboundAccess is set to false, both properties can only be set if subnet is empty.", | |
| "enum": [ | |
| "Tenant", | |
| "DelegatedServices" | |
| ], | |
| "x-ms-enum": { | |
| "name": "SharingScope", | |
| "modelAsString": true | |
| } | |
| }, |
API Spec version
2024-07-01
Describe the bug
Setting Sharing Scope property to DelegatedServices on subnet is not supported
Expected behavior
be able to set Sharing Scope property to DelegatedServices on subnet
Actual behavior
It is not allowed to set Sharing Scope property to DelegatedServices on subnet
Reproduction Steps
PUT https://management.azure.com/subscriptions/<redacted>/resourceGroups/acctestRG-250805055630624743/providers/Microsoft.Network/virtualNetworks/acctestvirtnet250805055630624743/subnets/internal?api-version=2024-05-01 HTTP/2.0
content-type: application/json; charset=utf-8
user-agent: HashiCorp/go-azure-sdk (Go-http-Client/1.1 subnets/2024-05-01) HashiCorp Terraform/1.12.1 (+https://www.terraform.io) terraform-provider-azurerm/acc pid-222c6c49-1b0a-5959-a213-6608f9eb8820
x-ms-correlation-request-id: ed08d9da-b583-973f-4be9-cd85b5fbe3eb
content-length: 444
accept-encoding: gzip
{"name":"internal","properties":{"addressPrefix":"10.0.2.0/24","defaultOutboundAccess":false,"delegations":[{"name":"first","properties":{"actions":["Microsoft.Network/virtualNetworks/subnets/action"],"serviceName":"Microsoft.ContainerInstance/containerGroups"}}],"privateEndpointNetworkPolicies":"Disabled","privateLinkServiceNetworkPolicies":"Enabled","provisioningState":"Succeeded","serviceEndpoints":[],"sharingScope":"DelegatedServices"}}
HTTP/2.0 400
cache-control: no-cache
pragma: no-cache
content-length: 180
content-type: application/json; charset=utf-8
expires: -1
x-ms-request-id: 3efecaed-3c9e-46bd-8ba3-e23b41e807ae
x-ms-correlation-request-id: ed08d9da-b583-973f-4be9-cd85b5fbe3eb
{"error":{"code":"NotAllowedToSetSharingScopeToDelegatedServicesOnSubnet","message":"It is not allowed to set Sharing Scope property to DelegatedServices on subnet.","details":[]}}
Environment
terraform
Metadata
Metadata
Assignees
Labels
bugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.