Azure / azure-powershell

Microsoft Azure PowerShell
Other
4.26k stars 3.86k forks source link

New SharingScope property on Subnets breaks Set-AzVirtualNetwork in older Az.Network versions #25553

Open davidcreel opened 4 months ago

davidcreel commented 4 months ago

Description

We have started receiving the following error when using the Set-AzVirtualNetwork cmdlet: It is not allowed to modify Sharing Scope property on non-empty subnet. This happens when using Az Powershell to get, modify, then set the vnet. Even though no changes are made to this property.

It appears that older versions of Az.Network do not have the ability to de(serialize) the SharingScope property to/from the API response. And for PUT requests to the VNet backend is interpreting this missing value as an attempt to change the property.

This appears to be a new property with limited rollout so far. We only see it present on VNets in certain regions (North Central US). Even on a very recent version of Az.Network PowerShell module (7.6.0), we still see this error.

Unless something else is going on here, I think any further rollout of this sharing scope property may have the potential to break the Set-AzVirtualNetwork cmdlet in a widespread fashion.

Issue script & Debug output

Sequence of cmdlets used:

$VirtualNetwork = Get-AzVirtualNetwork -Name "vnet-name" -ResourceGroupName "rg-name"
Remove-AzVirtualNetworkSubnetConfig -Name ContainerSubnet -VirtualNetwork $VirtualNetwork
$VirtualNetwork | Set-AzVirtualNetwork -ErrorAction Stop

Full output

PS C:\Users\DAVIDCREEL> $VirtualNetwork = Get-AzVirtualNetwork -Name vnet-name -ResourceGroupName vnet-rg
....REDACTIONS....
DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
GET

Absolute Uri:
https://management.azure.com/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/virtualNetworks/vnet-name?api-version=2023-11-01

Headers:
x-ms-client-request-id        : 93e5df1b-e667-4237-ab99-acdd98612113
accept-language               : en-US

Body:

DEBUG: ============================ HTTP RESPONSE ============================

Status Code:
OK

Headers:
REDACTED

Body:
{
  "name": "vnet-name",
  "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/virtualNetworks/vnet-name",
  "etag": "W/\"REDACTED\"",
  "type": "Microsoft.Network/virtualNetworks",
  "location": "northcentralus",
  "tags": {
    "SkipNRMSNSG": "Security Exception No",
    "fastpathenabled": "true"
  },
  "properties": {
    "provisioningState": "Succeeded",
    "resourceGuid": "REDACTED",
    "addressSpace": {
      "addressPrefixes": [
        "REDACTED.240.0/24",
        "REDACTED.241.0/24",
        "REDACTED.243.0/27",
        "REDACTED.243.32/28",
        "REDACTED.254.0/27",
        "REDACTED.254.32/27",
        "REDACTED.244.0/26"
      ],
      "ipamPoolPrefixAllocations": []
    },
    "subnets": [
      {
        "name": "subnet1",
        "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/virtualNetworks/vnet-name/subnets/subnet1",
        "etag": "W/\"REDACTED\"",
        "properties": {
          "provisioningState": "Succeeded",
          "addressPrefix": "REDACTED.240.0/24",
          "ipamPoolPrefixAllocations": [],
          "sharingScope": "DelegatedServices",
          "networkSecurityGroup": {
            "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/networkSecurityGroups/vnet-name-nsg"
          },
          "ipConfigurations": [
            {
              "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/networkInterfaces/REDACTED-R56-VMK0/ipConfigurations/IPCONFIG1"
            },
            {
              "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/networkInterfaces/REDACTED-R57-VMK0/ipConfigurations/IPCONFIG1"
            },
            {
              "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/networkInterfaces/REDACTED-R58-VMK0/ipConfigurations/IPCONFIG1"
            },
            {
              "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/networkInterfaces/REDACTED-R59-VMK0/ipConfigurations/IPCONFIG1"
            },
            {
              "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/networkInterfaces/REDACTED-R60-VMK0/ipConfigurations/IPCONFIG1"
            },
            {
              "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/networkInterfaces/REDACTED-R61-VMK0/ipConfigurations/IPCONFIG1"
            }
          ],
          "delegations": [
            {
              "name": "Microsoft.AVS.PrivateClouds",
              "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/virtualNetworks/vnet-name/subnets/subnet1/delegations/Microsoft.AVS.PrivateClouds",
              "etag": "W/\"REDACTED\"",
              "properties": {
                "provisioningState": "Succeeded",
                "serviceName": "Microsoft.AVS/PrivateClouds",
                "actions": [
                  "Microsoft.Network/networkinterfaces/*"
                ]
              },
              "type": "Microsoft.Network/virtualNetworks/subnets/delegations"
            }
          ],
          "purpose": "AzureNativeBareMetalWorkloads",
          "privateEndpointNetworkPolicies": "Enabled",
          "privateLinkServiceNetworkPolicies": "Enabled",
          "defaultOutboundAccess": false
        },
        "type": "Microsoft.Network/virtualNetworks/subnets"
      },
      {
        "name": "subnet2",
        "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/virtualNetworks/vnet-name/subnets/subnet2",
        "etag": "W/\"REDACTED\"",
        "properties": {
          "provisioningState": "Succeeded",
          "addressPrefix": "REDACTED.241.0/24",
          "ipamPoolPrefixAllocations": [],
          "sharingScope": "DelegatedServices",
          "networkSecurityGroup": {
            "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/networkSecurityGroups/vnet-name-nsg"
          },
          "ipConfigurations": [
            {
              "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/networkInterfaces/REDACTED-R56-VMK10/ipConfigurations/IPCONFIG1"
            },
            {
              "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/networkInterfaces/REDACTED-R57-VMK10/ipConfigurations/IPCONFIG1"
            },
            {
              "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/networkInterfaces/REDACTED-R58-VMK10/ipConfigurations/IPCONFIG1"
            },
            {
              "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/networkInterfaces/REDACTED-R59-VMK10/ipConfigurations/IPCONFIG1"
            },
            {
              "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/networkInterfaces/REDACTED-R60-VMK10/ipConfigurations/IPCONFIG1"
            },
            {
              "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/networkInterfaces/REDACTED-R61-VMK10/ipConfigurations/IPCONFIG1"
            }
          ],
          "delegations": [
            {
              "name": "Microsoft.AVS.PrivateClouds",
              "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/virtualNetworks/vnet-name/subnets/subnet2/delegations/Microsoft.AVS.PrivateClouds",
              "etag": "W/\"REDACTED\"",
              "properties": {
                "provisioningState": "Succeeded",
                "serviceName": "Microsoft.AVS/PrivateClouds",
                "actions": [
                  "Microsoft.Network/networkinterfaces/*"
                ]
              },
              "type": "Microsoft.Network/virtualNetworks/subnets/delegations"
            }
          ],
          "purpose": "AzureNativeBareMetalWorkloads",
          "privateEndpointNetworkPolicies": "Enabled",
          "privateLinkServiceNetworkPolicies": "Enabled",
          "defaultOutboundAccess": false
        },
        "type": "Microsoft.Network/virtualNetworks/subnets"
      },
      {
        "name": "subnet3",
        "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/virtualNetworks/vnet-name/subnets/subnet3",
        "etag": "W/\"REDACTED\"",
        "properties": {
          "provisioningState": "Succeeded",
          "addressPrefix": "REDACTED.254.32/27",
          "ipamPoolPrefixAllocations": [],
          "ipConfigurations": [
            {
              "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/virtualHubs/MGMT-RS/ipConfigurations/IPCONFIG"
            },
            {
              "id":
"/subscriptions/REDACTED/resourceGroups/REDACTED/PROVIDERS/MICROSOFT.COMPUTE/VIRTUALMACHINESCALESETS/RS/VIRTUALMACHINES/0/NETWORKINTERFACES/CUSTNIC/ipConfigurations/IPCONFIG"
            },
            {
              "id":
"/subscriptions/REDACTED/resourceGroups/REDACTED/PROVIDERS/MICROSOFT.COMPUTE/VIRTUALMACHINESCALESETS/RS/VIRTUALMACHINES/1/NETWORKINTERFACES/CUSTNIC/ipConfigurations/IPCONFIG"
            }
          ],
          "delegations": [],
          "privateEndpointNetworkPolicies": "Enabled",
          "privateLinkServiceNetworkPolicies": "Enabled"
        },
        "type": "Microsoft.Network/virtualNetworks/subnets"
      },
      {
        "name": "subnet4",
        "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/virtualNetworks/vnet-name/subnets/subnet4",
        "etag": "W/\"REDACTED\"",
        "properties": {
          "provisioningState": "Succeeded",
          "addressPrefix": "REDACTED.243.0/27",
          "ipamPoolPrefixAllocations": [],
          "networkSecurityGroup": {
            "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/networkSecurityGroups/vnet-nsg"
          },
          "ipConfigurations": [
            {
              "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/networkInterfaces/REDACTED530/ipConfigurations/IPCONFIG1"
            },
            {
              "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/networkInterfaces/REDACTED-WINDOWS14/ipConfigurations/IPCONFIG1"
            }
          ],
          "delegations": [],
          "privateEndpointNetworkPolicies": "Enabled",
          "privateLinkServiceNetworkPolicies": "Enabled"
        },
        "type": "Microsoft.Network/virtualNetworks/subnets"
      },
      {
        "name": "subnet5",
        "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/virtualNetworks/vnet-name/subnets/subnet5",
        "etag": "W/\"REDACTED\"",
        "properties": {
          "provisioningState": "Succeeded",
          "addressPrefix": "REDACTED.254.0/27",
          "ipamPoolPrefixAllocations": [],
          "ipConfigurations": [
            {
              "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/networkInterfaces/REDACTEDENDPOINT1_VNIC/ipConfigurations/IPCONFIG1"
            },
            {
              "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/networkInterfaces/REDACTEDENDPOINT2_VNIC/ipConfigurations/IPCONFIG1"
            }
          ],
          "delegations": [
            {
              "name": "Microsoft.BareMetal/AzureHostedService",
              "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/virtualNetworks/vnet-name/subnets/subnet5/delegations/Microsoft.BareMetal/AzureHostedService",
              "etag": "W/\"REDACTED\"",
              "properties": {
                "provisioningState": "Succeeded",
                "serviceName": "Microsoft.BareMetal/AzureHostedService",
                "actions": [
                  "Microsoft.Network/networkinterfaces/*",
                  "Microsoft.Network/virtualNetworks/subnets/join/action"
                ]
              },
              "type": "Microsoft.Network/virtualNetworks/subnets/delegations"
            }
          ],
          "purpose": "HostedWorkloads",
          "privateEndpointNetworkPolicies": "Enabled",
          "privateLinkServiceNetworkPolicies": "Enabled"
        },
        "type": "Microsoft.Network/virtualNetworks/subnets"
      },
      {
        "name": "ContainerSubnet",
        "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/virtualNetworks/vnet-name/subnets/ContainerSubnet",
        "etag": "W/\"REDACTED\"",
        "properties": {
          "provisioningState": "Succeeded",
          "addressPrefix": "REDACTED.243.32/28",
          "ipamPoolPrefixAllocations": [],
          "networkSecurityGroup": {
            "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/networkSecurityGroups/vnet-name-nsg"
          },
          "serviceAssociationLinks": [
            {
              "name": "acisal",
              "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/virtualNetworks/vnet-name/subnets/ContainerSubnet/serviceAssociationLinks/acisal",
              "etag": "W/\"REDACTED\"",
              "type": "Microsoft.Network/virtualNetworks/subnets/serviceAssociationLinks",
              "properties": {
                "provisioningState": "Succeeded",
                "linkedResourceType": "Microsoft.ContainerInstance/containerGroups",
                "enabledForArmDeployments": false,
                "allowDelete": true,
                "subnetId": "00000000-0000-0000-0000-000000000000",
                "locations": [
                  "northcentralus"
                ]
              }
            }
          ],
          "serviceEndpoints": [
            {
              "provisioningState": "Succeeded",
              "service": "Microsoft.Storage.Global",
              "locations": [
                "*"
              ]
            }
          ],
          "delegations": [
            {
              "name": "Microsoft.ContainerInstance/containerGroups",
              "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/virtualNetworks/vnet-name/subnets/ContainerSubnet/delegations/Microsoft.ContainerInstance/containerGroups",
              "etag": "W/\"REDACTED\"",
              "properties": {
                "provisioningState": "Succeeded",
                "serviceName": "Microsoft.ContainerInstance/containerGroups",
                "actions": [
                  "Microsoft.Network/virtualNetworks/subnets/action"
                ]
              },
              "type": "Microsoft.Network/virtualNetworks/subnets/delegations"
            }
          ],
          "privateEndpointNetworkPolicies": "NetworkSecurityGroupEnabled",
          "privateLinkServiceNetworkPolicies": "Enabled"
        },
        "type": "Microsoft.Network/virtualNetworks/subnets"
      },
      {
        "name": "AzureBastionSubnet",
        "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/virtualNetworks/vnet-name/subnets/AzureBastionSubnet",
        "etag": "W/\"REDACTED\"",
        "properties": {
          "provisioningState": "Succeeded",
          "addressPrefix": "REDACTED.244.0/26",
          "ipamPoolPrefixAllocations": [],
          "ipConfigurations": [
            {
              "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/bastionHosts/REDACTED-BASTION/bastionHostIpConfigurations/IPCONF"
            }
          ],
          "delegations": [],
          "privateEndpointNetworkPolicies": "Disabled",
          "privateLinkServiceNetworkPolicies": "Enabled"
        },
        "type": "Microsoft.Network/virtualNetworks/subnets"
      }
    ],
    "virtualNetworkPeerings": [],
    "enableDdosProtection": false
  }
}

DEBUG: 5:22:52 PM - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 5:22:52 PM - [ConfigManager] Got nothing from [DisplayRegionIdentified], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 5:22:52 PM - [ConfigManager] Got nothing from [CheckForUpgrade], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: AzureQoSEvent:  Module: Az.Network:7.6.0; CommandName: Get-AzVirtualNetwork; PSVersion: 3.0.0.0; IsSuccess: True; Duration: 00:00:01.0875147;
SanitizeDuration: 00:00:00.0506882
DEBUG: 5:22:52 PM - [ConfigManager] Got [True] from [EnableDataCollection], Module = [], Cmdlet = [].
DEBUG: 5:22:52 PM - GetAzureVirtualNetworkCommand end processing.
PS C:\Users\DAVIDCREEL> Remove-AzVirtualNetworkSubnetConfig -Name ContainerSubnet -VirtualNetwork $VirtualNetwork
DEBUG: 5:23:31 PM - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 5:23:31 PM - RemoveAzureVirtualNetworkSubnetConfigCommand begin processing with ParameterSet '__AllParameterSets'.
DEBUG: 5:23:31 PM - using account id 'REDACTED'...
DEBUG: 5:23:31 PM - [ConfigManager] Got nothing from [DisplayBreakingChangeWarning], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 5:23:31 PM - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning default value [True].

DEBUG: 5:23:31 PM - [ConfigManager] Got nothing from [DisplayRegionIdentified], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 5:23:31 PM - [ConfigManager] Got nothing from [CheckForUpgrade], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: AzureQoSEvent:  Module: Az.Network:7.6.0; CommandName: Remove-AzVirtualNetworkSubnetConfig; PSVersion: 3.0.0.0; IsSuccess: True; Duration:
00:00:00.0706783; SanitizeDuration: 00:00:00.0422790
DEBUG: 5:23:31 PM - [ConfigManager] Got [True] from [EnableDataCollection], Module = [], Cmdlet = [].
DEBUG: 5:23:31 PM - RemoveAzureVirtualNetworkSubnetConfigCommand end processing.
ResourceGroupName             Name                                     Location       ProvisioningState EnableDdosProtection
-----------------             ----                                     --------       ----------------- --------------------
vnet-rg vnet-name northcentralus Succeeded         False

PS C:\Users\DAVIDCREEL> $VirtualNetwork | Set-AzVirtualNetwork -ErrorAction Stop
DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
GET

Absolute Uri:
https://management.azure.com/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/virtualNetworks/vnet-name?api-version=2023-11-01

Headers:
x-ms-client-request-id        : 9e182728-3840-494a-b67c-2171607a9aa6
accept-language               : en-US

Body:

DEBUG: ============================ HTTP RESPONSE ============================

Status Code:
OK

Headers:
REDACTED

Body:
{
  "name": "vnet-name",
  "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/virtualNetworks/vnet-name",
  "etag": "W/\"REDACTED\"",
  "type": "Microsoft.Network/virtualNetworks",
  "location": "northcentralus",
  "tags": {
    "SkipNRMSNSG": "Security Exception No",
    "fastpathenabled": "true"
  },
  "properties": {
    "provisioningState": "Succeeded",
    "resourceGuid": "REDACTED",
    "addressSpace": {
      "addressPrefixes": [
        "REDACTED.240.0/24",
        "REDACTED.241.0/24",
        "REDACTED.243.0/27",
        "REDACTED.243.32/28",
        "REDACTED.254.0/27",
        "REDACTED.254.32/27",
        "REDACTED.244.0/26"
      ],
      "ipamPoolPrefixAllocations": []
    },
    "subnets": [
      {
        "name": "subnet1",
        "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/virtualNetworks/vnet-name/subnets/subnet1",
        "etag": "W/\"REDACTED\"",
        "properties": {
          "provisioningState": "Succeeded",
          "addressPrefix": "REDACTED.240.0/24",
          "ipamPoolPrefixAllocations": [],
          "sharingScope": "DelegatedServices",
          "networkSecurityGroup": {
            "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/networkSecurityGroups/vnet-name-nsg"
          },
          "ipConfigurations": [
            {
              "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/networkInterfaces/REDACTED-R56-VMK0/ipConfigurations/IPCONFIG1"
            },
            {
              "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/networkInterfaces/REDACTED-R57-VMK0/ipConfigurations/IPCONFIG1"
            },
            {
              "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/networkInterfaces/REDACTED-R58-VMK0/ipConfigurations/IPCONFIG1"
            },
            {
              "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/networkInterfaces/REDACTED-R59-VMK0/ipConfigurations/IPCONFIG1"
            },
            {
              "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/networkInterfaces/REDACTED-R60-VMK0/ipConfigurations/IPCONFIG1"
            },
            {
              "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/networkInterfaces/REDACTED-R61-VMK0/ipConfigurations/IPCONFIG1"
            }
          ],
          "delegations": [
            {
              "name": "Microsoft.AVS.PrivateClouds",
              "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/virtualNetworks/vnet-name/subnets/subnet1/delegations/Microsoft.AVS.PrivateClouds",
              "etag": "W/\"REDACTED\"",
              "properties": {
                "provisioningState": "Succeeded",
                "serviceName": "Microsoft.AVS/PrivateClouds",
                "actions": [
                  "Microsoft.Network/networkinterfaces/*"
                ]
              },
              "type": "Microsoft.Network/virtualNetworks/subnets/delegations"
            }
          ],
          "purpose": "AzureNativeBareMetalWorkloads",
          "privateEndpointNetworkPolicies": "Enabled",
          "privateLinkServiceNetworkPolicies": "Enabled",
          "defaultOutboundAccess": false
        },
        "type": "Microsoft.Network/virtualNetworks/subnets"
      },
      {
        "name": "subnet2",
        "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/virtualNetworks/vnet-name/subnets/subnet2",
        "etag": "W/\"REDACTED\"",
        "properties": {
          "provisioningState": "Succeeded",
          "addressPrefix": "REDACTED.241.0/24",
          "ipamPoolPrefixAllocations": [],
          "sharingScope": "DelegatedServices",
          "networkSecurityGroup": {
            "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/networkSecurityGroups/vnet-name-nsg"
          },
          "ipConfigurations": [
            {
              "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/networkInterfaces/REDACTED-R56-VMK10/ipConfigurations/IPCONFIG1"
            },
            {
              "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/networkInterfaces/REDACTED-R57-VMK10/ipConfigurations/IPCONFIG1"
            },
            {
              "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/networkInterfaces/REDACTED-R58-VMK10/ipConfigurations/IPCONFIG1"
            },
            {
              "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/networkInterfaces/REDACTED-R59-VMK10/ipConfigurations/IPCONFIG1"
            },
            {
              "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/networkInterfaces/REDACTED-R60-VMK10/ipConfigurations/IPCONFIG1"
            },
            {
              "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/networkInterfaces/REDACTED-R61-VMK10/ipConfigurations/IPCONFIG1"
            }
          ],
          "delegations": [
            {
              "name": "Microsoft.AVS.PrivateClouds",
              "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/virtualNetworks/vnet-name/subnets/subnet2/delegations/Microsoft.AVS.PrivateClouds",
              "etag": "W/\"REDACTED\"",
              "properties": {
                "provisioningState": "Succeeded",
                "serviceName": "Microsoft.AVS/PrivateClouds",
                "actions": [
                  "Microsoft.Network/networkinterfaces/*"
                ]
              },
              "type": "Microsoft.Network/virtualNetworks/subnets/delegations"
            }
          ],
          "purpose": "AzureNativeBareMetalWorkloads",
          "privateEndpointNetworkPolicies": "Enabled",
          "privateLinkServiceNetworkPolicies": "Enabled",
          "defaultOutboundAccess": false
        },
        "type": "Microsoft.Network/virtualNetworks/subnets"
      },
      {
        "name": "subnet3",
        "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/virtualNetworks/vnet-name/subnets/subnet3",
        "etag": "W/\"REDACTED\"",
        "properties": {
          "provisioningState": "Succeeded",
          "addressPrefix": "REDACTED.254.32/27",
          "ipamPoolPrefixAllocations": [],
          "ipConfigurations": [
            {
              "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/virtualHubs/MGMT-RS/ipConfigurations/IPCONFIG"
            },
            {
              "id":
"/subscriptions/REDACTED/resourceGroups/REDACTED/PROVIDERS/MICROSOFT.COMPUTE/VIRTUALMACHINESCALESETS/RS/VIRTUALMACHINES/0/NETWORKINTERFACES/CUSTNIC/ipConfigurations/IPCONFIG"
            },
            {
              "id":
"/subscriptions/REDACTED/resourceGroups/REDACTED/PROVIDERS/MICROSOFT.COMPUTE/VIRTUALMACHINESCALESETS/RS/VIRTUALMACHINES/1/NETWORKINTERFACES/CUSTNIC/ipConfigurations/IPCONFIG"
            }
          ],
          "delegations": [],
          "privateEndpointNetworkPolicies": "Enabled",
          "privateLinkServiceNetworkPolicies": "Enabled"
        },
        "type": "Microsoft.Network/virtualNetworks/subnets"
      },
      {
        "name": "subnet4",
        "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/virtualNetworks/vnet-name/subnets/subnet4",
        "etag": "W/\"REDACTED\"",
        "properties": {
          "provisioningState": "Succeeded",
          "addressPrefix": "REDACTED.243.0/27",
          "ipamPoolPrefixAllocations": [],
          "networkSecurityGroup": {
            "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/networkSecurityGroups/vnet-nsg"
          },
          "ipConfigurations": [
            {
              "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/networkInterfaces/REDACTED530/ipConfigurations/IPCONFIG1"
            },
            {
              "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/networkInterfaces/REDACTED-WINDOWS14/ipConfigurations/IPCONFIG1"
            }
          ],
          "delegations": [],
          "privateEndpointNetworkPolicies": "Enabled",
          "privateLinkServiceNetworkPolicies": "Enabled"
        },
        "type": "Microsoft.Network/virtualNetworks/subnets"
      },
      {
        "name": "subnet5",
        "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/virtualNetworks/vnet-name/subnets/subnet5",
        "etag": "W/\"REDACTED\"",
        "properties": {
          "provisioningState": "Succeeded",
          "addressPrefix": "REDACTED.254.0/27",
          "ipamPoolPrefixAllocations": [],
          "ipConfigurations": [
            {
              "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/networkInterfaces/REDACTEDENDPOINT1_VNIC/ipConfigurations/IPCONFIG1"
            },
            {
              "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/networkInterfaces/REDACTEDENDPOINT2_VNIC/ipConfigurations/IPCONFIG1"
            }
          ],
          "delegations": [
            {
              "name": "Microsoft.BareMetal/AzureHostedService",
              "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/virtualNetworks/vnet-name/subnets/subnet5/delegations/Microsoft.BareMetal/AzureHostedService",
              "etag": "W/\"REDACTED\"",
              "properties": {
                "provisioningState": "Succeeded",
                "serviceName": "Microsoft.BareMetal/AzureHostedService",
                "actions": [
                  "Microsoft.Network/networkinterfaces/*",
                  "Microsoft.Network/virtualNetworks/subnets/join/action"
                ]
              },
              "type": "Microsoft.Network/virtualNetworks/subnets/delegations"
            }
          ],
          "purpose": "HostedWorkloads",
          "privateEndpointNetworkPolicies": "Enabled",
          "privateLinkServiceNetworkPolicies": "Enabled"
        },
        "type": "Microsoft.Network/virtualNetworks/subnets"
      },
      {
        "name": "ContainerSubnet",
        "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/virtualNetworks/vnet-name/subnets/ContainerSubnet",
        "etag": "W/\"REDACTED\"",
        "properties": {
          "provisioningState": "Succeeded",
          "addressPrefix": "REDACTED.243.32/28",
          "ipamPoolPrefixAllocations": [],
          "networkSecurityGroup": {
            "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/networkSecurityGroups/vnet-name-nsg"
          },
          "serviceAssociationLinks": [
            {
              "name": "acisal",
              "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/virtualNetworks/vnet-name/subnets/ContainerSubnet/serviceAssociationLinks/acisal",
              "etag": "W/\"REDACTED\"",
              "type": "Microsoft.Network/virtualNetworks/subnets/serviceAssociationLinks",
              "properties": {
                "provisioningState": "Succeeded",
                "linkedResourceType": "Microsoft.ContainerInstance/containerGroups",
                "enabledForArmDeployments": false,
                "allowDelete": true,
                "subnetId": "00000000-0000-0000-0000-000000000000",
                "locations": [
                  "northcentralus"
                ]
              }
            }
          ],
          "serviceEndpoints": [
            {
              "provisioningState": "Succeeded",
              "service": "Microsoft.Storage.Global",
              "locations": [
                "*"
              ]
            }
          ],
          "delegations": [
            {
              "name": "Microsoft.ContainerInstance/containerGroups",
              "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/virtualNetworks/vnet-name/subnets/ContainerSubnet/delegations/Microsoft.ContainerInstance/containerGroups",
              "etag": "W/\"REDACTED\"",
              "properties": {
                "provisioningState": "Succeeded",
                "serviceName": "Microsoft.ContainerInstance/containerGroups",
                "actions": [
                  "Microsoft.Network/virtualNetworks/subnets/action"
                ]
              },
              "type": "Microsoft.Network/virtualNetworks/subnets/delegations"
            }
          ],
          "privateEndpointNetworkPolicies": "NetworkSecurityGroupEnabled",
          "privateLinkServiceNetworkPolicies": "Enabled"
        },
        "type": "Microsoft.Network/virtualNetworks/subnets"
      },
      {
        "name": "AzureBastionSubnet",
        "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/virtualNetworks/vnet-name/subnets/AzureBastionSubnet",
        "etag": "W/\"REDACTED\"",
        "properties": {
          "provisioningState": "Succeeded",
          "addressPrefix": "REDACTED.244.0/26",
          "ipamPoolPrefixAllocations": [],
          "ipConfigurations": [
            {
              "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/bastionHosts/REDACTED-BASTION/bastionHostIpConfigurations/IPCONF"
            }
          ],
          "delegations": [],
          "privateEndpointNetworkPolicies": "Disabled",
          "privateLinkServiceNetworkPolicies": "Enabled"
        },
        "type": "Microsoft.Network/virtualNetworks/subnets"
      }
    ],
    "virtualNetworkPeerings": [],
    "enableDdosProtection": false
  }
}

DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
PUT

Absolute Uri:
https://management.azure.com/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/virtualNetworks/vnet-name?api-version=2023-11-01

Headers:
x-ms-client-request-id        : 9e182728-3840-494a-b67c-2171607a9aa6
accept-language               : en-US

Body:
{
  "properties": {
    "addressSpace": {
      "addressPrefixes": [
        "REDACTED.240.0/24",
        "REDACTED.241.0/24",
        "REDACTED.243.0/27",
        "REDACTED.243.32/28",
        "REDACTED.254.0/27",
        "REDACTED.254.32/27",
        "REDACTED.244.0/26"
      ]
    },
    "dhcpOptions": {
      "dnsServers": []
    },
    "subnets": [
      {
        "name": "subnet1",
        "properties": {
          "addressPrefix": "REDACTED.240.0/24",
          "addressPrefixes": [],
          "networkSecurityGroup": {
            "properties": {
              "securityRules": []
            },
            "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/networkSecurityGroups/vnet-name-nsg",
            "tags": {}
          },
          "serviceEndpoints": [],
          "serviceEndpointPolicies": [],
          "ipAllocations": [],
          "delegations": [
            {
              "name": "Microsoft.AVS.PrivateClouds",
              "properties": {
                "serviceName": "Microsoft.AVS/PrivateClouds"
              },
              "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/virtualNetworks/vnet-name/subnets/subnet1/delegations/Microsoft.AVS.PrivateClouds"
            }
          ],
          "privateEndpointNetworkPolicies": "Enabled",
          "privateLinkServiceNetworkPolicies": "Enabled",
          "applicationGatewayIPConfigurations": [],
          "defaultOutboundAccess": false
        },
        "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/virtualNetworks/vnet-name/subnets/subnet1"
      },
      {
        "name": "subnet2",
        "properties": {
          "addressPrefix": "REDACTED.241.0/24",
          "addressPrefixes": [],
          "networkSecurityGroup": {
            "properties": {
              "securityRules": []
            },
            "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/networkSecurityGroups/vnet-name-nsg",
            "tags": {}
          },
          "serviceEndpoints": [],
          "serviceEndpointPolicies": [],
          "ipAllocations": [],
          "delegations": [
            {
              "name": "Microsoft.AVS.PrivateClouds",
              "properties": {
                "serviceName": "Microsoft.AVS/PrivateClouds"
              },
              "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/virtualNetworks/vnet-name/subnets/subnet2/delegations/Microsoft.AVS.PrivateClouds"
            }
          ],
          "privateEndpointNetworkPolicies": "Enabled",
          "privateLinkServiceNetworkPolicies": "Enabled",
          "applicationGatewayIPConfigurations": [],
          "defaultOutboundAccess": false
        },
        "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/virtualNetworks/vnet-name/subnets/subnet2"
      },
      {
        "name": "subnet3",
        "properties": {
          "addressPrefix": "REDACTED.254.32/27",
          "addressPrefixes": [],
          "serviceEndpoints": [],
          "serviceEndpointPolicies": [],
          "ipAllocations": [],
          "delegations": [],
          "privateEndpointNetworkPolicies": "Enabled",
          "privateLinkServiceNetworkPolicies": "Enabled",
          "applicationGatewayIPConfigurations": []
        },
        "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/virtualNetworks/vnet-name/subnets/subnet3"
      },
      {
        "name": "subnet4",
        "properties": {
          "addressPrefix": "REDACTED.243.0/27",
          "addressPrefixes": [],
          "networkSecurityGroup": {
            "properties": {
              "securityRules": []
            },
            "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/networkSecurityGroups/vnet-nsg",
            "tags": {}
          },
          "serviceEndpoints": [],
          "serviceEndpointPolicies": [],
          "ipAllocations": [],
          "delegations": [],
          "privateEndpointNetworkPolicies": "Enabled",
          "privateLinkServiceNetworkPolicies": "Enabled",
          "applicationGatewayIPConfigurations": []
        },
        "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/virtualNetworks/vnet-name/subnets/subnet4"
      },
      {
        "name": "subnet5",
        "properties": {
          "addressPrefix": "REDACTED.254.0/27",
          "addressPrefixes": [],
          "serviceEndpoints": [],
          "serviceEndpointPolicies": [],
          "ipAllocations": [],
          "delegations": [
            {
              "name": "Microsoft.BareMetal/AzureHostedService",
              "properties": {
                "serviceName": "Microsoft.BareMetal/AzureHostedService"
              },
              "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/virtualNetworks/vnet-name/subnets/subnet5/delegations/Microsoft.BareMetal/AzureHostedService"
            }
          ],
          "privateEndpointNetworkPolicies": "Enabled",
          "privateLinkServiceNetworkPolicies": "Enabled",
          "applicationGatewayIPConfigurations": []
        },
        "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/virtualNetworks/vnet-name/subnets/subnet5"
      },
      {
        "name": "AzureBastionSubnet",
        "properties": {
          "addressPrefix": "REDACTED.244.0/26",
          "addressPrefixes": [],
          "serviceEndpoints": [],
          "serviceEndpointPolicies": [],
          "ipAllocations": [],
          "delegations": [],
          "privateEndpointNetworkPolicies": "Disabled",
          "privateLinkServiceNetworkPolicies": "Enabled",
          "applicationGatewayIPConfigurations": []
        },
        "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/virtualNetworks/vnet-name/subnets/AzureBastionSubnet"
      }
    ],
    "virtualNetworkPeerings": [],
    "enableDdosProtection": false,
    "ipAllocations": []
  },
  "id":
"/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/virtualNetworks/vnet-name",
  "location": "northcentralus",
  "tags": {
    "fastpathenabled": "true",
    "SkipNRMSNSG": "Security Exception No"
  }
}

DEBUG: ============================ HTTP RESPONSE ============================

Status Code:
BadRequest

Headers:
REDACTED

Body:
{
  "error": {
    "code": "NotAllowedToModifySharingScopePropertyOnSubnet",
    "message": "It is not allowed to modify Sharing Scope property on non-empty subnet. Current value DelegatedServices. Provided value . Referenced
resource:
/subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/networkInterfaces/REDACTED-r56-VMK0/ipConfigurations/ipconfig1.",
    "details": []
  }
}

DEBUG: 5:24:28 PM - [ConfigManager] Got nothing from [EnableErrorRecordsPersistence], Module = [], Cmdlet = []. Returning default value [False].
Set-AzVirtualNetwork : It is not allowed to modify Sharing Scope property on non-empty subnet. Current value DelegatedServices. Provided value .
Referenced resource: /subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/networkInterfaces/REDACTED-r56-VMK0/ipConfigurations/ipconfig1.
StatusCode: 400
ReasonPhrase: Bad Request
ErrorCode: NotAllowedToModifySharingScopePropertyOnSubnet
ErrorMessage: It is not allowed to modify Sharing Scope property on non-empty subnet. Current value DelegatedServices. Provided value . Referenced
resource: /subscriptions/redacted-sub-id/resourceGroups/vnet-rg/providers/Microsoft.Network/networkInterfaces/REDACTED-r56-VMK0/ipConfigurations/ipconfig1.
OperationID : 031755fd-3352-4783-a4f8-435f9d34edb8
At line:1 char:19
+ $VirtualNetwork | Set-AzVirtualNetwork -ErrorAction Stop
+                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : CloseError: (:) [Set-AzVirtualNetwork], NetworkCloudException
    + FullyQualifiedErrorId : Microsoft.Azure.Commands.Network.SetAzureVirtualNetworkCommand

Environment data

Note: I am running in constrained language mode if that makes a difference

PS C:\Users\DAVIDCREEL> $ExecutionContext.SessionState.LanguageMode
ConstrainedLanguage
PS C:\Users\DAVIDCREEL> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      5.1.22621.3880
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.22621.3880
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Module versions

PS C:\Users\DAVIDCREEL> Get-Module Az* -ListAvailable

    Directory: C:\Users\DAVIDCREEL\Work Folders\Documents\WindowsPowerShell\Modules

ModuleType Version    Name                                ExportedCommands
---------- -------    ----                                ----------------
Script     3.0.2      Az.Accounts                         {Disable-AzDataCollection, Disable-AzContextAutosave, Enable-AzDataCollection, Enable-AzContex...
Script     7.6.0      Az.Network                          {Add-AzApplicationGatewayAuthenticationCertificate, Add-AzApplicationGatewayBackendAddressPool...

    Directory: C:\Program Files\WindowsPowerShell\Modules

ModuleType Version    Name                                ExportedCommands
---------- -------    ----                                ----------------
Script     2.2.4      Az.Accounts                         {Disable-AzDataCollection, Disable-AzContextAutosave, Enable-AzDataCollection, Enable-AzContex...
Script     2.1.0      Az.Accounts                         {Disable-AzDataCollection, Disable-AzContextAutosave, Enable-AzDataCollection, Enable-AzContex...
Script     1.1.1      Az.Advisor                          {Get-AzAdvisorRecommendation, Enable-AzAdvisorRecommendation, Disable-AzAdvisorRecommendation,...
Script     2.0.1      Az.Aks                              {Get-AzAksCluster, New-AzAksCluster, Remove-AzAksCluster, Import-AzAksCredential...}
Script     1.2.0      Az.Aks                              {Get-AzAksCluster, New-AzAksCluster, Remove-AzAksCluster, Import-AzAksCredential...}
Script     1.1.4      Az.AnalysisServices                 {Resume-AzAnalysisServicesServer, Suspend-AzAnalysisServicesServer, Get-AzAnalysisServicesServ...
Script     2.2.0      Az.ApiManagement                    {Add-AzApiManagementApiToGateway, Add-AzApiManagementApiToProduct, Add-AzApiManagementProductT...
Script     2.1.0      Az.ApiManagement                    {Add-AzApiManagementApiToGateway, Add-AzApiManagementApiToProduct, Add-AzApiManagementProductT...
Script     1.0.0      Az.AppConfiguration                 {Get-AzAppConfigurationStore, Get-AzAppConfigurationStoreKey, New-AzAppConfigurationStore, New...
Script     1.1.0      Az.ApplicationInsights              {Get-AzApplicationInsights, New-AzApplicationInsights, Remove-AzApplicationInsights, Update-Az...
Script     1.4.2      Az.Automation                       {Get-AzAutomationHybridWorkerGroup, Remove-AzAutomationHybridWorkerGroup, Get-AzAutomationJobO...
Script     1.4.0      Az.Automation                       {Get-AzAutomationHybridWorkerGroup, Remove-AzAutomationHybridWorkerGroup, Get-AzAutomationJobO...
Script     3.1.0      Az.Batch                            {Remove-AzBatchAccount, Get-AzBatchAccount, Get-AzBatchAccountKey, New-AzBatchAccount...}
Script     2.0.0      Az.Billing                          {Get-AzBillingInvoice, Get-AzBillingPeriod, Get-AzEnrollmentAccount, Get-AzConsumptionBudget...}
Script     1.0.3      Az.Billing                          {Get-AzBillingInvoice, Get-AzBillingPeriod, Get-AzEnrollmentAccount, Get-AzConsumptionBudget...}
Script     1.6.0      Az.Cdn                              {Get-AzCdnProfile, Get-AzCdnProfileSsoUrl, New-AzCdnProfile, Remove-AzCdnProfile...}
Script     1.4.3      Az.Cdn                              {Get-AzCdnProfile, Get-AzCdnProfileSsoUrl, New-AzCdnProfile, Remove-AzCdnProfile...}
Script     1.8.0      Az.CognitiveServices                {Get-AzCognitiveServicesAccount, Get-AzCognitiveServicesAccountKey, Get-AzCognitiveServicesAcc...
Script     1.5.1      Az.CognitiveServices                {Get-AzCognitiveServicesAccount, Get-AzCognitiveServicesAccountKey, Get-AzCognitiveServicesAcc...
Script     4.8.0      Az.Compute                          {Remove-AzAvailabilitySet, Get-AzAvailabilitySet, New-AzAvailabilitySet, Update-AzAvailability...
Script     4.3.1      Az.Compute                          {Remove-AzAvailabilitySet, Get-AzAvailabilitySet, New-AzAvailabilitySet, Update-AzAvailability...
Script     1.0.3      Az.ContainerInstance                {New-AzContainerGroup, Get-AzContainerGroup, Remove-AzContainerGroup, Get-AzContainerInstanceLog}
Script     2.1.0      Az.ContainerRegistry                {New-AzContainerRegistry, Get-AzContainerRegistry, Update-AzContainerRegistry, Remove-AzContai...
Script     1.1.1      Az.ContainerRegistry                {New-AzContainerRegistry, Get-AzContainerRegistry, Update-AzContainerRegistry, Remove-AzContai...
Script     1.2.0      Az.CosmosDB                         {Get-AzCosmosDBSqlContainer, Get-AzCosmosDBSqlContainerThroughput, Get-AzCosmosDBSqlDatabase, ...
Script     1.0.0      Az.CosmosDB                         {Get-AzCosmosDBSqlContainer, Get-AzCosmosDBSqlContainerThroughput, Get-AzCosmosDBSqlDatabase, ...
Script     1.1.0      Az.DataBoxEdge                      {Get-AzDataBoxEdgeJob, Get-AzDataBoxEdgeDevice, Invoke-AzDataBoxEdgeDevice, New-AzDataBoxEdgeD...
Script     1.1.0      Az.Databricks                       {Get-AzDatabricksVNetPeering, Get-AzDatabricksWorkspace, New-AzDatabricksVNetPeering, New-AzDa...
Script     1.0.2      Az.Databricks                       {Get-AzDatabricksVNetPeering, Get-AzDatabricksWorkspace, New-AzDatabricksVNetPeering, New-AzDa...
Script     1.11.3     Az.DataFactory                      {Set-AzDataFactoryV2, Update-AzDataFactoryV2, Get-AzDataFactoryV2, Remove-AzDataFactoryV2...}
Script     1.10.0     Az.DataFactory                      {Set-AzDataFactoryV2, Update-AzDataFactoryV2, Get-AzDataFactoryV2, Remove-AzDataFactoryV2...}
Script     1.0.2      Az.DataLakeAnalytics                {Get-AzDataLakeAnalyticsDataSource, New-AzDataLakeAnalyticsCatalogCredential, Remove-AzDataLak...
Script     1.3.0      Az.DataLakeStore                    {Get-AzDataLakeStoreTrustedIdProvider, Remove-AzDataLakeStoreTrustedIdProvider, Remove-AzDataL...
Script     1.2.8      Az.DataLakeStore                    {Get-AzDataLakeStoreTrustedIdProvider, Remove-AzDataLakeStoreTrustedIdProvider, Remove-AzDataL...
Script     1.0.0      Az.DataShare                        {New-AzDataShareAccount, Get-AzDataShareAccount, Remove-AzDataShareAccount, New-AzDataShare...}
Script     1.1.0      Az.DeploymentManager                {Get-AzDeploymentManagerArtifactSource, New-AzDeploymentManagerArtifactSource, Set-AzDeploymen...
Script     2.1.1      Az.DesktopVirtualization            {Disconnect-AzWvdUserSession, Expand-AzWvdMsixImage, Get-AzWvdApplication, Get-AzWvdApplicatio...
Script     1.0.0      Az.DesktopVirtualization            {Disconnect-AzWvdUserSession, Get-AzWvdApplication, Get-AzWvdApplicationGroup, Get-AzWvdDeskto...
Script     1.0.2      Az.DevTestLabs                      {Get-AzDtlAllowedVMSizesPolicy, Get-AzDtlAutoShutdownPolicy, Get-AzDtlAutoStartPolicy, Get-AzD...
Script     1.1.2      Az.Dns                              {Get-AzDnsRecordSet, New-AzDnsRecordConfig, Remove-AzDnsRecordSet, Set-AzDnsRecordSet...}
Script     1.3.0      Az.EventGrid                        {New-AzEventGridTopic, Get-AzEventGridTopic, Set-AzEventGridTopic, New-AzEventGridTopicKey...}
Script     1.7.1      Az.EventHub                         {New-AzEventHubNamespace, Get-AzEventHubNamespace, Set-AzEventHubNamespace, Remove-AzEventHubN...
Script     1.5.0      Az.EventHub                         {New-AzEventHubNamespace, Get-AzEventHubNamespace, Set-AzEventHubNamespace, Remove-AzEventHubN...
Script     1.6.1      Az.FrontDoor                        {New-AzFrontDoor, Get-AzFrontDoor, Set-AzFrontDoor, Remove-AzFrontDoor...}
Script     4.1.1      Az.HDInsight                        {Get-AzHDInsightJob, New-AzHDInsightSqoopJobDefinition, Wait-AzHDInsightJob, New-AzHDInsightSt...
Script     3.5.0      Az.HDInsight                        {Get-AzHDInsightJob, New-AzHDInsightSqoopJobDefinition, Wait-AzHDInsightJob, New-AzHDInsightSt...
Script     1.2.0      Az.HealthcareApis                   {New-AzHealthcareApisService, Remove-AzHealthcareApisService, Set-AzHealthcareApisService, Get...
Script     1.1.0      Az.HealthcareApis                   {New-AzHealthcareApisService, Remove-AzHealthcareApisService, Set-AzHealthcareApisService, Get...
Script     2.7.2      Az.IotHub                           {Add-AzIotHubKey, Get-AzIotHubEventHubConsumerGroup, Get-AzIotHubConnectionString, Get-AzIotHu...
Script     2.5.0      Az.IotHub                           {Add-AzIotHubKey, Get-AzIotHubEventHubConsumerGroup, Get-AzIotHubConnectionString, Get-AzIotHu...
Script     3.3.1      Az.KeyVault                         {Add-AzKeyVaultCertificate, Update-AzKeyVaultCertificate, Stop-AzKeyVaultCertificateOperation,...
Script     2.1.0      Az.KeyVault                         {Add-AzKeyVaultCertificate, Update-AzKeyVaultCertificate, Stop-AzKeyVaultCertificateOperation,...
Script     2.0.0      Az.Kusto                            {Add-AzKustoClusterLanguageExtension, Add-AzKustoDatabasePrincipal, Get-AzKustoAttachedDatabas...
Script     1.0.1      Az.Kusto                            {Add-AzKustoClusterLanguageExtension, Add-AzKustoDatabasePrincipal, Get-AzKustoAttachedDatabas...
Script     1.5.0      Az.LogicApp                         {Get-AzIntegrationAccountAgreement, Get-AzIntegrationAccountAssembly, Get-AzIntegrationAccount...
Script     1.3.2      Az.LogicApp                         {Get-AzIntegrationAccountAgreement, Get-AzIntegrationAccountAssembly, Get-AzIntegrationAccount...
Script     1.1.3      Az.MachineLearning                  {Move-AzMlCommitmentAssociation, Get-AzMlCommitmentAssociation, Get-AzMlCommitmentPlanUsageHis...
Script     1.1.0      Az.Maintenance                      {Get-AzApplyUpdate, Get-AzConfigurationAssignment, Get-AzMaintenanceConfiguration, Get-AzMaint...
Script     2.0.0      Az.ManagedServices                  {Get-AzManagedServicesAssignment, New-AzManagedServicesAssignment, Remove-AzManagedServicesAss...
Script     1.1.0      Az.ManagedServices                  {Get-AzManagedServicesAssignment, New-AzManagedServicesAssignment, Remove-AzManagedServicesAss...
Script     1.0.2      Az.MarketplaceOrdering              {Get-AzMarketplaceTerms, Set-AzMarketplaceTerms}
Script     1.1.1      Az.Media                            {Sync-AzMediaServiceStorageKey, Set-AzMediaServiceKey, Get-AzMediaServiceKey, Get-AzMediaServi...
Script     1.0.2      Az.Migrate                          {Get-AzMigrateDiscoveredServer, Get-AzMigrateJob, Get-AzMigrateProject, Get-AzMigrateReplicati...
Script     2.4.0      Az.Monitor                          {Get-AzMetricDefinition, Get-AzMetric, Remove-AzLogProfile, Get-AzLogProfile...}
Script     2.1.0      Az.Monitor                          {Get-AzMetricDefinition, Get-AzMetric, Remove-AzLogProfile, Get-AzLogProfile...}
Script     4.5.0      Az.Network                          {Add-AzApplicationGatewayAuthenticationCertificate, Get-AzApplicationGatewayAuthenticationCert...
Script     3.3.0      Az.Network                          {Add-AzApplicationGatewayAuthenticationCertificate, Get-AzApplicationGatewayAuthenticationCert...
Script     1.1.1      Az.NotificationHubs                 {Get-AzNotificationHub, Get-AzNotificationHubAuthorizationRule, Get-AzNotificationHubListKey, ...
Script     2.3.0      Az.OperationalInsights              {New-AzOperationalInsightsAzureActivityLogDataSource, New-AzOperationalInsightsCustomLogDataSo...
Script     1.4.0      Az.PolicyInsights                   {Get-AzPolicyEvent, Get-AzPolicyState, Get-AzPolicyStateSummary, Get-AzPolicyRemediation...}
Script     1.3.1      Az.PolicyInsights                   {Get-AzPolicyEvent, Get-AzPolicyState, Get-AzPolicyStateSummary, Get-AzPolicyRemediation...}
Script     1.1.2      Az.PowerBIEmbedded                  {Remove-AzPowerBIWorkspaceCollection, Get-AzPowerBIWorkspaceCollection, Get-AzPowerBIWorkspace...
Script     1.0.3      Az.PrivateDns                       {Get-AzPrivateDnsZone, Remove-AzPrivateDnsZone, Set-AzPrivateDnsZone, New-AzPrivateDnsZone...}
Script     3.3.0      Az.RecoveryServices                 {Get-AzRecoveryServicesBackupProperty, Get-AzRecoveryServicesVault, Get-AzRecoveryServicesVaul...
Script     2.11.1     Az.RecoveryServices                 {Get-AzRecoveryServicesBackupProperty, Get-AzRecoveryServicesVault, Get-AzRecoveryServicesVaul...
Script     1.4.0      Az.RedisCache                       {Remove-AzRedisCachePatchSchedule, New-AzRedisCacheScheduleEntry, Get-AzRedisCachePatchSchedul...
Script     1.2.1      Az.RedisCache                       {Remove-AzRedisCachePatchSchedule, New-AzRedisCacheScheduleEntry, Get-AzRedisCachePatchSchedul...
Script     1.0.0      Az.RedisEnterpriseCache             {Export-AzRedisEnterpriseCache, Get-AzRedisEnterpriseCache, Get-AzRedisEnterpriseCacheDatabase...
Script     1.0.3      Az.Relay                            {New-AzRelayNamespace, Get-AzRelayNamespace, Set-AzRelayNamespace, Remove-AzRelayNamespace...}
Script     1.0.0      Az.ResourceMover                    {Add-AzResourceMoverMoveResource, Get-AzResourceMoverMoveCollection, Get-AzResourceMoverMoveRe...
Script     3.2.0      Az.Resources                        {Get-AzProviderOperation, Remove-AzRoleAssignment, Get-AzRoleAssignment, New-AzRoleAssignment...}
Script     2.5.0      Az.Resources                        {Get-AzProviderOperation, Remove-AzRoleAssignment, Get-AzRoleAssignment, New-AzRoleAssignment...}
Script     1.0.0      Az.SecurityInsights                 {Get-AzSentinelAlertRuleAction, New-AzSentinelAlertRuleAction, Remove-AzSentinelAlertRuleActio...
Script     1.4.1      Az.ServiceBus                       {New-AzServiceBusNamespace, Get-AzServiceBusNamespace, Set-AzServiceBusNamespace, Remove-AzSer...
Script     2.2.2      Az.ServiceFabric                    {Add-AzServiceFabricClientCertificate, Add-AzServiceFabricClusterCertificate, Add-AzServiceFab...
Script     2.1.0      Az.ServiceFabric                    {Add-AzServiceFabricClientCertificate, Add-AzServiceFabricClusterCertificate, Add-AzServiceFab...
Script     1.2.0      Az.SignalR                          {New-AzSignalR, Get-AzSignalR, Get-AzSignalRKey, New-AzSignalRKey...}
Script     2.15.0     Az.Sql                              {Get-AzSqlDatabaseTransparentDataEncryption, Get-AzSqlDatabaseTransparentDataEncryptionActivit...
Script     2.9.1      Az.Sql                              {Get-AzSqlDatabaseTransparentDataEncryption, Get-AzSqlDatabaseTransparentDataEncryptionActivit...
Script     1.1.0      Az.SqlVirtualMachine                {New-AzSqlVM, Get-AzSqlVM, Update-AzSqlVM, Remove-AzSqlVM...}
Script     3.2.1      Az.Storage                          {Get-AzStorageAccount, Get-AzStorageAccountKey, New-AzStorageAccount, New-AzStorageAccountKey...}
Script     2.5.0      Az.Storage                          {Get-AzStorageAccount, Get-AzStorageAccountKey, New-AzStorageAccount, New-AzStorageAccountKey...}
Script     1.4.0      Az.StorageSync                      {Invoke-AzStorageSyncCompatibilityCheck, New-AzStorageSyncService, Get-AzStorageSyncService, S...
Script     1.3.0      Az.StorageSync                      {Invoke-AzStorageSyncCompatibilityCheck, New-AzStorageSyncService, Get-AzStorageSyncService, S...
Script     1.0.1      Az.StreamAnalytics                  {Get-AzStreamAnalyticsFunction, Get-AzStreamAnalyticsDefaultFunctionDefinition, New-AzStreamAn...
Script     1.0.0      Az.Support                          {Get-AzSupportService, Get-AzSupportProblemClassification, Get-AzSupportTicket, Get-AzSupportT...
Script     1.0.4      Az.TrafficManager                   {Add-AzTrafficManagerCustomHeaderToEndpoint, Remove-AzTrafficManagerCustomHeaderFromEndpoint, ...
Script     2.2.0      Az.Websites                         {Get-AzAppServicePlan, Set-AzAppServicePlan, New-AzAppServicePlan, Remove-AzAppServicePlan...}
Script     1.11.0     Az.Websites                         {Get-AzAppServicePlan, Set-AzAppServicePlan, New-AzAppServicePlan, Remove-AzAppServicePlan...}
Manifest   2.0.2      AzTable                             {Add-AzTableRow, Get-AzTableRow, Get-AzTableRowAll, Get-AzTableRowByPartitionKeyRowKey...}
Script     5.3.0      Azure                               {Get-AzureAutomationCertificate, Get-AzureAutomationConnection, New-AzureAutomationConnection,...
Script     5.1.2      Azure                               {Get-AzureAutomationCertificate, Get-AzureAutomationConnection, New-AzureAutomationConnection,...
Manifest   0.5.0      Azure.AnalysisServices              {Add-AzureAnalysisServicesAccount, Restart-AzureAnalysisServicesInstance, Export-AzureAnalysis...
Script     4.6.1      Azure.Storage                       {Get-AzureStorageTable, New-AzureStorageTableSASToken, New-AzureStorageTableStoredAccessPolicy...
Script     4.2.1      Azure.Storage                       {Get-AzureStorageTable, New-AzureStorageTableSASToken, New-AzureStorageTableStoredAccessPolicy...
Script     5.7.0      AzureRM
Script     0.6.6      AzureRM.AnalysisServices            {Resume-AzureRmAnalysisServicesServer, Suspend-AzureRmAnalysisServicesServer, Get-AzureRmAnaly...
Script     5.1.2      AzureRM.ApiManagement               {Add-AzureRmApiManagementRegion, Get-AzureRmApiManagementSsoToken, New-AzureRmApiManagementHos...
Script     0.1.3      AzureRM.ApplicationInsights         {Get-AzureRmApplicationInsights, New-AzureRmApplicationInsights, Remove-AzureRmApplicationInsi...
Script     4.3.2      AzureRM.Automation                  {Get-AzureRMAutomationHybridWorkerGroup, Get-AzureRmAutomationJobOutputRecord, Import-AzureRmA...
Script     4.0.4      AzureRM.Backup                      {Backup-AzureRmBackupItem, Enable-AzureRmBackupContainerReregistration, Get-AzureRmBackupConta...
Script     4.0.6      AzureRM.Batch                       {Remove-AzureRmBatchAccount, Get-AzureRmBatchAccount, Get-AzureRmBatchAccountKeys, New-AzureRm...
Script     0.14.1     AzureRM.Billing                     {Get-AzureRmBillingInvoice, Get-AzureRmBillingPeriod, Get-AzureRmEnrollmentAccount}
Script     4.2.2      AzureRM.Cdn                         {Get-AzureRmCdnProfile, Get-AzureRmCdnProfileSsoUrl, New-AzureRmCdnProfile, Remove-AzureRmCdnP...
Script     0.9.4      AzureRM.CognitiveServices           {Get-AzureRmCognitiveServicesAccount, Get-AzureRmCognitiveServicesAccountKey, Get-AzureRmCogni...
Script     4.6.0      AzureRM.Compute                     {Remove-AzureRmAvailabilitySet, Get-AzureRmAvailabilitySet, New-AzureRmAvailabilitySet, Update...
Script     0.3.1      AzureRM.Consumption                 Get-AzureRmConsumptionUsageDetail
Script     0.2.5      AzureRM.ContainerInstance           {New-AzureRmContainerGroup, Get-AzureRmContainerGroup, Remove-AzureRmContainerGroup, Get-Azure...
Script     1.0.4      AzureRM.ContainerRegistry           {New-AzureRmContainerRegistry, Get-AzureRmContainerRegistry, Update-AzureRmContainerRegistry, ...
Script     4.2.2      AzureRM.DataFactories               {Remove-AzureRmDataFactory, Get-AzureRmDataFactoryRun, Get-AzureRmDataFactorySlice, Save-Azure...
Script     0.5.3      AzureRM.DataFactoryV2               {Set-AzureRmDataFactoryV2, Update-AzureRmDataFactoryV2, Get-AzureRmDataFactoryV2, Remove-Azure...
Script     4.2.3      AzureRM.DataLakeAnalytics           {Get-AzureRmDataLakeAnalyticsDataSource, New-AzureRmDataLakeAnalyticsCatalogCredential, Remove...
Script     5.2.0      AzureRM.DataLakeStore               {Get-AzureRmDataLakeStoreTrustedIdProvider, Remove-AzureRmDataLakeStoreTrustedIdProvider, Remo...
Script     4.0.4      AzureRM.DevTestLabs                 {Get-AzureRmDtlAllowedVMSizesPolicy, Get-AzureRmDtlAutoShutdownPolicy, Get-AzureRmDtlAutoStart...
Script     4.1.2      AzureRM.Dns                         {Get-AzureRmDnsRecordSet, New-AzureRmDnsRecordConfig, Remove-AzureRmDnsRecordSet, Set-AzureRmD...
Script     0.3.2      AzureRM.EventGrid                   {New-AzureRmEventGridTopic, Get-AzureRmEventGridTopic, Set-AzureRmEventGridTopic, New-AzureRmE...
Script     0.6.3      AzureRM.EventHub                    {New-AzureRmEventHubNamespace, Get-AzureRmEventHubNamespace, Set-AzureRmEventHubNamespace, Rem...
Script     4.1.2      AzureRM.HDInsight                   {Get-AzureRmHDInsightJob, New-AzureRmHDInsightSqoopJobDefinition, Wait-AzureRmHDInsightJob, Ne...
Script     4.0.4      AzureRM.Insights                    {Get-AzureRmMetricDefinition, Get-AzureRmMetric, Remove-AzureRmLogProfile, Get-AzureRmLogProfi...
Script     3.1.2      AzureRM.IotHub                      {Add-AzureRmIotHubKey, Get-AzureRmIotHubEventHubConsumerGroup, Get-AzureRmIotHubConnectionStri...
Script     4.3.0      AzureRM.KeyVault                    {Add-AzureKeyVaultCertificate, Set-AzureKeyVaultCertificateAttribute, Stop-AzureKeyVaultCertif...
Script     4.0.3      AzureRM.LogicApp                    {Get-AzureRmIntegrationAccountAgreement, Get-AzureRmIntegrationAccountCallbackUrl, Get-AzureRm...
Script     0.17.2     AzureRM.MachineLearning             {Move-AzureRmMlCommitmentAssociation, Get-AzureRmMlCommitmentAssociation, Get-AzureRmMlCommitm...
Script     0.4.2      AzureRM.MachineLearningCompute      {Get-AzureRmMlOpCluster, Get-AzureRmMlOpClusterKey, Test-AzureRmMlOpClusterSystemServicesUpdat...
Script     0.2.1      AzureRM.MarketplaceOrdering         {Get-AzureRmMarketplaceTerms, Set-AzureRmMarketplaceTerms}
Script     0.9.2      AzureRM.Media                       {Sync-AzureRmMediaServiceStorageKeys, Set-AzureRmMediaServiceKey, Get-AzureRmMediaServiceKeys,...
Script     5.4.2      AzureRM.Network                     {Add-AzureRmApplicationGatewayAuthenticationCertificate, Get-AzureRmApplicationGatewayAuthenti...
Script     4.1.1      AzureRM.NotificationHubs            {Get-AzureRmNotificationHub, Get-AzureRmNotificationHubAuthorizationRules, Get-AzureRmNotifica...
Script     4.3.2      AzureRM.OperationalInsights         {New-AzureRmOperationalInsightsAzureActivityLogDataSource, New-AzureRmOperationalInsightsCusto...
Script     4.1.4      AzureRM.PowerBIEmbedded             {Remove-AzureRmPowerBIWorkspaceCollection, Get-AzureRmPowerBIWorkspaceCollection, Get-AzureRmP...
Script     5.8.3      AzureRM.Profile                     {Disable-AzureRmDataCollection, Disable-AzureRmContextAutosave, Enable-AzureRmDataCollection, ...
Script     4.6.0      AzureRM.Profile                     {Disable-AzureRmDataCollection, Disable-AzureRmContextAutosave, Enable-AzureRmDataCollection, ...
Script     4.1.2      AzureRM.RecoveryServices            {Get-AzureRmRecoveryServicesBackupProperty, Get-AzureRmRecoveryServicesVault, Get-AzureRmRecov...
Script     4.1.2      AzureRM.RecoveryServices.Backup     {Backup-AzureRmRecoveryServicesBackupItem, Get-AzureRmRecoveryServicesBackupManagementServer, ...
Script     0.2.4      AzureRM.RecoveryServices.SiteRec... {Edit-AzureRmRecoveryServicesAsrRecoveryPlan, Get-AzureRmRecoveryServicesAsrAlertSetting, Get-...
Script     4.1.2      AzureRM.RedisCache                  {Remove-AzureRmRedisCachePatchSchedule, New-AzureRmRedisCacheScheduleEntry, Get-AzureRmRedisCa...
Script     0.3.3      AzureRM.Relay                       {New-AzureRmRelayNamespace, Get-AzureRmRelayNamespace, Set-AzureRmRelayNamespace, Remove-Azure...
Script     5.5.2      AzureRM.Resources                   {Get-AzureRmProviderOperation, Remove-AzureRmRoleAssignment, Get-AzureRmRoleAssignment, New-Az...
Script     0.16.3     AzureRM.Scheduler                   {Disable-AzureRmSchedulerJobCollection, Enable-AzureRmSchedulerJobCollection, Get-AzureRmSched...
Script     4.1.2      AzureRM.ServerManagement            {Invoke-AzureRmServerManagementPowerShellCommand, Get-AzureRmServerManagementSession, New-Azur...
Script     0.6.4      AzureRM.ServiceBus                  {New-AzureRmServiceBusNamespace, Get-AzureRmServiceBusNamespace, Set-AzureRmServiceBusNamespac...
Script     0.3.4      AzureRM.ServiceFabric               {Add-AzureRmServiceFabricApplicationCertificate, Add-AzureRmServiceFabricClientCertificate, Ad...
Script     5.0.6      AzureRM.SiteRecovery                {Get-AzureRmSiteRecoveryFabric, New-AzureRmSiteRecoveryFabric, Remove-AzureRmSiteRecoveryFabri...
Script     4.4.0      AzureRM.Sql                         {Get-AzureRmSqlDatabaseTransparentDataEncryption, Get-AzureRmSqlDatabaseTransparentDataEncrypt...
Script     4.2.3      AzureRM.Storage                     {Get-AzureRmStorageAccount, Get-AzureRmStorageAccountKey, New-AzureRmStorageAccount, New-Azure...
Script     4.0.4      AzureRM.StreamAnalytics             {Get-AzureRmStreamAnalyticsFunction, Get-AzureRmStreamAnalyticsDefaultFunctionDefinition, New-...
Script     4.0.1      AzureRM.Tags                        {Remove-AzureRmTag, Get-AzureRmTag, New-AzureRmTag}
Script     4.0.3      AzureRM.TrafficManager              {Disable-AzureRmTrafficManagerEndpoint, Enable-AzureRmTrafficManagerEndpoint, Set-AzureRmTraff...
Script     4.0.2      AzureRM.UsageAggregates             Get-UsageAggregates
Script     4.2.2      AzureRM.Websites                    {Get-AzureRmAppServicePlan, Set-AzureRmAppServicePlan, New-AzureRmAppServicePlan, Remove-Azure...
Get-Module : Importing *.ps1 files as modules is not allowed in ConstrainedLanguage mode.
At line:1 char:1
+ Get-Module Az* -ListAvailable
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : PermissionDenied: (:) [Get-Module], InvalidOperationException
    + FullyQualifiedErrorId : Modules_ImportPSFileNotAllowedInConstrainedLanguage,Microsoft.PowerShell.Commands.GetModuleCommand

Error output

Set-AzVirtualNetwork : It is not allowed to modify Sharing Scope property on non-empty subnet. Current value DelegatedServices. Provided value .
Referenced resource: /subscriptions/guid/resourceGroups/vnet-rg/providers/Microsoft.Network/networkIn
terfaces/interface1/ipConfigurations/ipconfig1.
StatusCode: 400
ReasonPhrase: Bad Request
ErrorCode: NotAllowedToModifySharingScopePropertyOnSubnet
ErrorMessage: It is not allowed to modify Sharing Scope property on non-empty subnet. Current value DelegatedServices. Provided value . Referenced
resource: /subscriptions/guid/resourceGroups/vnet-rg/providers/Microsoft.Network/networkIn
terfaces/interface1/ipConfigurations/ipconfig1.
OperationID : 031755fd-3352-4783-a4f8-435f9d34edb8
At line:1 char:19
+ $VirtualNetwork | Set-AzVirtualNetwork -ErrorAction Stop
+                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : CloseError: (:) [Set-AzVirtualNetwork], NetworkCloudException
    + FullyQualifiedErrorId : Microsoft.Azure.Commands.Network.SetAzureVirtualNetworkCommand
microsoft-github-policy-service[bot] commented 4 months ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @vnetsuppgithub.

microsoft-github-policy-service[bot] commented 4 months ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @vnetsuppgithub.

davidcreel commented 3 months ago

Updated bug report with more detailed logs. Note: This bug is still present even after upgrading to a recent version of Az.Network.