你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Az 12.0.0 迁移指南

Az.Accounts

Clear-AzConfig

  • 所有参数集都将发生 Cmdlet 中断性变更
    • 将弃用参数 DisableErrorRecordsPersistence,并会添加一个新参数 EnableErrorRecordsPersistence。 将错误记录写入文件系统将变为选择加入而不是选择退出。此更改将在 2024 年 5 月左右发生
    • 此更改预计将从 Az.Accounts 版本 2.X 和 Az 版本 12.0.0 开始生效

之前

Clear-AzConfig -DisableErrorRecordsPersistence

之后

error record will be disabled by default. New parameter 'EnableErrorRecordsPersistence' added to enable erro record.

Get-AzConfig

  • 所有参数集都将发生 Cmdlet 中断性变更
    • 将弃用参数 DisableErrorRecordsPersistence,并会添加一个新参数 EnableErrorRecordsPersistence。 将错误记录写入文件系统将变为选择加入而不是选择退出。此更改将在 2024 年 5 月左右发生
    • 此更改预计将从 Az.Accounts 版本 2.X 和 Az 版本 12.0.0 开始生效

之前

Get-AzConfig -DisableErrorRecordsPersistence 

之后

error record will be disabled by default. New parameter 'EnableErrorRecordsPersistence' added to enable erro record.

Update-AzConfig

  • 所有参数集都将发生 Cmdlet 中断性变更
    • 将弃用参数 DisableErrorRecordsPersistence,并会添加一个新参数 EnableErrorRecordsPersistence。 将错误记录写入文件系统将变为选择加入而不是选择退出。此更改将在 2024 年 5 月左右发生
    • 此更改预计将从 Az.Accounts 版本 2.X 和 Az 版本 12.0.0 开始生效

之前

Update-AzConfig -DisableErrorRecordsPersistence 

之后

error record will be disabled by default. New parameter 'EnableErrorRecordsPersistence' added to enable erro record.

Az.Compute

Get-AzVmss

  • 所有参数集都将发生 Cmdlet 中断性变更
    • 从 2024 年 5 月开始,“Get-AzVmss”cmdlet 将不再允许资源组名称和虚拟机规模集名称使用空值。
    • 此变更预计将从 Az.Compute 版本 8.0.0 和 Az 版本 12.0.0 开始生效

之前

Get-AzVmss -ResourceGroupName ""
# Returned an empty list.

之后

Get-AzVmss -ResourceGroupName ""
# Will return an error from empty string validation in the parameter.

New-AzGalleryImageDefinition

  • 所有参数集都将发生 Cmdlet 中断性变更
    • 从 2024 年 5 月开始,“New-AzGalleryImage”cmdlet 将默认部署受信任启动配置和 Gen2 Hyper V 代系。 若要了解有关“受信任启动”的详细信息,请访问 https://learn.microsoft.com/azure/virtual-machines/trusted-launch
    • 此变更预计将从 Az.Compute 版本 8.0.0 和 Az 版本 12.0.0 开始生效

之前

New-AzGalleryImageDefinition -ResourceGroupName $rgName -GalleryName $galleryName -Name $galleryImageDefinitionName -Location $location -Publisher $publisherName -Offer $offerName -Sku $skuName -OsState "Specialized" -OsType "Linux"
# Defaulted to HyperVGeneration: Gen1 and SecurityType: Standard in the service side .

之后

New-AzGalleryImageDefinition -ResourceGroupName $rgName -GalleryName $galleryName -Name $galleryImageDefinitionName -Location $location -Publisher $publisherName -Offer $offerName -Sku $skuName -OsState "Specialized" -OsType "Linux"
# Defaults to HyperVGeneration: Gen2 and SecurityType: TrustedLaunchSupported at the PowerShell level.

New-AzVM

  • 所有参数集都将发生 Cmdlet 中断性变更
    • 从 2024 年 5 月开始,“New-AzVM”cmdlet 将默认部署映像“Windows Server 2022 Azure 版本”。 这会使将来迁移到受信任启动变得更容易。 若要了解有关“受信任启动”的详细信息,请访问 https://learn.microsoft.com/azure/virtual-machines/trusted-launch
    • 此变更预计将从 Az.Compute 版本 8.0.0 和 Az 版本 12.0.0 开始生效

之前

$vm = New-AzVM -ResourceGroupName $rgname -Name $vmname -Credential $cred -SecurityType "Standard" -DomainNameLabel $domainNameLabel
# Creates a VM with the image Windows 2016 Datacenter. 

之后

$vm = New-AzVM -ResourceGroupName $rgname -Name $vmname -Credential $cred -SecurityType "Standard" -DomainNameLabel $domainNameLabel
# Now generates with the Windows 2022 Azure Edition image.

New-AzVmss

  • 所有参数集都将发生 Cmdlet 中断性变更
    • 从 2024 年 5 月开始,“New-AzVmss”cmdlet 将默认部署映像“Windows Server 2022 Azure 版本”。 这会使将来迁移到受信任启动变得更容易。 若要了解有关“受信任启动”的详细信息,请访问 https://learn.microsoft.com/azure/virtual-machines/trusted-launch
    • 此变更预计将从 Az.Compute 版本 8.0.0 和 Az 版本 12.0.0 开始生效

之前

$vmss = New-AzVmss -ResourceGroupName $rgname -Credential $cred -VMScaleSetName $vmssName -SecurityType "Standard" -DomainNameLabel $domainNameLabel1
# would create a VMSS with a Windows 2016 Datacenter image. 

之后

$vmss = New-AzVmss -ResourceGroupName $rgname -Credential $cred -VMScaleSetName $vmssName -SecurityType "Standard" -DomainNameLabel $domainNameLabel1
# Now it will generate with a Windows 2022 Azure Edition image.

Az.EventGrid

Get-AzEventGridChannel

  • 所有参数集都将发生参数中断性变更
    • -NextLink
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -ODataQuery
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效

之前

Get-AzEventGridChannel -ResourceGroup MyResourceGroupName -PartnerNamespaceName PartnerNamespace1 -Name Channel1

之后

Get-AzEventGridChannel -ResourceGroupName azps_test_group_eventgrid -PartnerNamespaceName azps-partnernamespace

Get-AzEventGridDomain

  • 所有参数集都将发生参数中断性变更
    • -NextLink
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -ODataQuery
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -ResourceId
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效

之前

Get-AzEventGridDomain -ResourceGroup MyResourceGroupName -Name Domain1

之后

Get-AzEventGridDomain -ResourceGroupName azps_test_group_eventgrid -Name azps-domain

Get-AzEventGridDomainTopic

  • 所有参数集都将发生参数中断性变更
    • -NextLink
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -ODataQuery
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -ResourceId
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效

之前

Get-AzEventGridDomainTopic -ResourceGroup MyResourceGroupName -DomainName Domain1 -DomainTopicName DomainTopic1

之后

Get-AzEventGridDomainTopic -DomainName azps-domain -ResourceGroupName azps_test_group_eventgrid -Name azps-domaintopics

Get-AzEventGridFullUrlForPartnerTopicEventSubscription

  • 所有参数集都将发生参数中断性变更
    • -ResourceId
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效

之前

Get-AzEventGridFullUrlForPartnerTopicEventSubscription -ResourceGroupName MyResourceGroupName -PartnerTopicName Topic1 -EventSubscriptionName EventSubscription1

之后

Get-AzEventGridFullUrlForPartnerTopicEventSubscription -ResourceGroupName azps_test_group_eventgrid -PartnerTopicName default -EventSubscriptionName azps-eventsubname

Get-AzEventGridPartnerConfiguration

  • 所有参数集都将发生参数中断性变更
    • -NextLink
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -ODataQuery
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效

之前

Get-AzEventGridPartnerConfiguration -ResourceGroupName ResourceGroup1

之后

Get-AzEventGridPartnerConfiguration -ResourceGroupName azps_test_group_eventgrid

Get-AzEventGridPartnerNamespace

  • 所有参数集都将发生参数中断性变更
    • -NextLink
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -ODataQuery
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效

之前

Get-AzEventGridPartnerNamespace -ResourceGroup MyResourceGroupName -Name PartnerNamespace1

之后

Get-AzEventGridPartnerNamespace -ResourceGroupName azps_test_group_eventgrid -Name azps-partnernamespace

Get-AzEventGridPartnerRegistration

  • 所有参数集都将发生参数中断性变更
    • -NextLink
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -ODataQuery
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效

之前

Get-AzEventGridPartnerRegistration -ResourceGroupName MyResourceGroupName -Name PartnerRegistration1

之后

Get-AzEventGridPartnerRegistration -ResourceGroupName azps_test_group_eventgrid -Name azps-registration

Get-AzEventGridPartnerTopic

  • 所有参数集都将发生参数中断性变更
    • -NextLink
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -ODataQuery
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效

之前

Get-AzEventGridPartnerTopic -ResourceGroupName MyResourceGroupName -Name PartnerTopic1

之后

Get-AzEventGridPartnerTopic -Name default -ResourceGroupName azps_test_group_eventgrid

Get-AzEventGridPartnerTopicEventSubscription

  • 所有参数集都将发生参数中断性变更
    • -IncludeFullEndpointUrl
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -NextLink
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -ODataQuery
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -ResourceId
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效

之前

Get-AzEventGridPartnerTopicEventSubscription -ResourceGroupName MyResourceGroupName -PartnerTopicName Topic1 -EventSubscriptionName EventSubscription1 -IncludeFullEndpointUrl

之后

Get-AzEventGridPartnerTopicEventSubscription -ResourceGroupName azps_test_group_eventgrid -PartnerTopicName default -EventSubscriptionName azps-eventsubname

Get-AzEventGridSubscription

  • 所有参数集都将发生参数中断性变更
    • -IncludeFullEndpointUrl
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -Location
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -NextLink
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -ODataQuery
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -ResourceId
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -TopicTypeName
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效

之前

Get-AzEventGridSubscription -ResourceId "/subscriptions/$subscriptionId/resourceGroups/$resourceGroupName/providers/Microsoft.EventHub/namespaces/$namespaceName"

之后

Get-AzEventGridSubscription -Name azps-eventsub -Scope "/subscriptions/{subId}/resourceGroups/azps_test_group_eventgrid/providers/Microsoft.EventGrid/topics/azps-topic"

Get-AzEventGridSystemTopic

  • 所有参数集都将发生参数中断性变更
    • -NextLink
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -ODataQuery
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效

之前

Get-AzEventGridSystemTopic -ResourceGroup MyResourceGroupName -Name Topic1

之后

Get-AzEventGridSystemTopic -ResourceGroupName azps_test_group_eventgrid -Name azps-systopic

Get-AzEventGridSystemTopicEventSubscription

  • 所有参数集都将发生参数中断性变更
    • -IncludeFullEndpointUrl
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -NextLink
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -ODataQuery
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效

之前

Get-AzEventGridSystemTopicEventSubscription -ResourceGroupName MyResourceGroupName -SystemTopicName Topic1 -EventSubscriptionName EventSubscription1 -IncludeFullEndpointUrl

之后

Get-AzEventGridSystemTopicEventSubscription -ResourceGroupName azps_test_group_eventgrid -SystemTopicName azps-systopic -EventSubscriptionName azps-evnetsub

Get-AzEventGridTopic

  • 所有参数集都将发生参数中断性变更
    • -NextLink
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -ODataQuery
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -ResourceId
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效

之前

Get-AzEventGridTopic -ResourceGroup MyResourceGroupName -Name Topic1

之后

Get-AzEventGridTopic -ResourceGroupName azps_test_group_eventgrid -Name azps-topic

Get-AzEventGridTopicType

  • 所有参数集都将发生参数中断性变更
    • -IncludeEventTypeData
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效

之前

Get-AzEventGridTopicType -Name "Microsoft.Storage.StorageAccounts"

之后

Get-AzEventGridTopicType -Name Microsoft.EventGrid.Namespaces

Get-AzEventGridVerifiedPartner

  • 所有参数集都将发生参数中断性变更
    • -NextLink
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -ODataQuery
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效

之前

Get-AzEventGridVerifiedPartner -Name VerifiedPartner1

之后

Get-AzEventGridVerifiedPartner -Name MicrosoftGraphAPI

New-AzEventGridDomain

  • 所有参数集都将发生参数中断性变更
    • -IdentityType
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -InboundIpRule
      • 参数“InboundIpRule”将发生变更。 参数的类型将从“System.Collections.Hashtable”更改为“IInboundIPRule[]”。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -InputMappingDefaultValue
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -InputMappingField
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效

之前

New-AzEventGridDomain -ResourceGroupName MyResourceGroupName -Name Domain1 -Location westus2 -Tag @{ Department="Finance"; Environment="Test" }

之后

$inboundIpRule = New-AzEventGridInboundIPRuleObject -Action Allow -IPMask "12.18.176.1"
New-AzEventGridDomain -Name azps-domain -ResourceGroupName azps_test_group_eventgrid -Location westus2 -PublicNetworkAccess Enabled -InboundIPRule $inboundIpRule

New-AzEventGridPartnerConfiguration

  • 所有参数集都将发生参数中断性变更
    • -AuthorizedPartner
      • 参数“AuthorizedPartner”将发生变更。 参数的类型将从“System.Collections.Hashtable[]”更改为“IPartner[]”。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效

之前

New-AzEventGridPartnerConfiguration -ResourceGroupName MyResourceGroupName -MaxExpirationTimeInDays 14

之后

$partnerRegistration = Get-AzEventGridPartnerRegistration -ResourceGroupName azps_test_group_eventgrid -Name azps-registration
$partner = New-AzEventGridPartnerObject -AuthorizationExpirationTimeInUtc "2023-11-19T09:31:42.521Z" -RegistrationImmutableId $partnerRegistration.ImmutableId
New-AzEventGridPartnerConfiguration -ResourceGroupName azps_test_group_eventgrid -Location global -PartnerAuthorizationDefaultMaximumExpirationTimeInDay 10 -PartnerAuthorizationAuthorizedPartnersList $partner

New-AzEventGridPartnerNamespace

  • 所有参数集都将发生参数中断性变更
    • -Endpoint
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -InboundIpRule
      • 参数“InboundIpRule”将发生变更。 参数的类型将从“Microsoft.Azure.Commands.EventGrid.Models.PSInboundIpRule[]”更改为“IInboundIPRule[]”。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -PrivateEndpointConnection
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效

之前

New-AzEventGridPartnerNamespace -ResourceGroupName MyResourceGroupName -Name PartnerNamespace1 -Location westus2 -PartnerRegistrationFullyQualifiedId 23e0092b-f336-4833-9ab3-9353a15650fc

之后

New-AzEventGridPartnerNamespace -Name azps-partnernamespace -ResourceGroupName azps_test_group_eventgrid -Location eastus -PartnerTopicRoutingMode ChannelNameHeader -PartnerRegistrationFullyQualifiedId "/subscriptions/{subId}/resourceGroups/azps_test_group_eventgrid/providers/Microsoft.EventGrid/partnerRegistrations/azps-registration"

New-AzEventGridPartnerRegistration

  • 所有参数集都将发生 Cmdlet 中断性变更
    • 添加了新的必需参数:位置 <String>
    • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效

之前

New-AzEventGridPartnerRegistration -ResourceGroupName MyResourceGroupName -Name PartnerRegistration1

之后

New-AzEventGridPartnerRegistration -Name azps-registration -ResourceGroupName azps_test_group_eventgrid -Location global

New-AzEventGridPartnerTopic

  • 所有参数集都将发生参数中断性变更
    • -IdentityType
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效

之前

New-AzEventGridPartnerTopic -ResourceGroupName MyResourceGroupName -Name PartnerTopic1 -Source ContosoCorp.Accounts.User1 -Location westus2 -PartnerRegistrationImmutableId 23e0092b-f336-4833-9ab3-9353a15650fc

之后

$partnerRegistration = Get-AzEventGridPartnerRegistration -ResourceGroupName azps_test_group_eventgrid -Name azps-registration
New-AzEventGridPartnerTopic -Name default -ResourceGroupName azps_test_group_eventgrid -Location eastus -partnerRegistrationImmutableId $partnerRegistration.ImmutableId -Source "ContosoCorp.Accounts.User1" -ExpirationTimeIfNotActivatedUtc "2023-11-17T11:06:13.109Z" -PartnerTopicFriendlyDescription "Example description" -MessageForActivation "Example message for activation"

New-AzEventGridPartnerTopicEventSubscription

  • 所有参数集都将发生参数中断性变更
    • -AdvancedFilter
      • 参数“AdvancedFilter”将发生变更。 参数的类型将从“System.Collections.Hashtable[]”更改为“IAdvancedFilter[]”。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -AzureActiveDirectoryApplicationIdOrUri
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -AzureActiveDirectoryTenantId
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -DeadLetterEndpoint
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -DeliveryAttributeMapping
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -Endpoint
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -EndpointType
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -MaxEventsPerBatch
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -PreferredBatchSizeInKiloByte
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -StorageQueueMessageTtl
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效

之前

$includedEventTypes = "Microsoft.Resources.ResourceWriteFailure", "Microsoft.Resources.ResourceWriteSuccess"
$labels = "Finance", "HR"
New-AzEventGridPartnerTopicEventSubscription -ResourceGroup MyResourceGroup -PartnerTopicName Topic1 -EventSubscriptionName EventSubscription1 -Endpoint https://requestb.in/19qlscd1  -SubjectBeginsWith "TestPrefix" -SubjectEndsWith "TestSuffix" -IncludedEventType $includedEventTypes -Label $labels

之后

$obj = New-AzEventGridWebHookEventSubscriptionDestinationObject -EndpointUrl "https://azpsweb.azurewebsites.net"
New-AzEventGridPartnerTopicEventSubscription -EventSubscriptionName azps-eventsub -ResourceGroupName azps_test_group_eventgrid -PartnerTopicName default -FilterIsSubjectCaseSensitive:$false -FilterSubjectBeginsWith "ExamplePrefix" -FilterSubjectEndsWith "ExampleSuffix" -EventDeliverySchema CloudEventSchemaV1_0 -Destination $obj

New-AzEventGridSubscription

  • 所有参数集都将发生参数中断性变更
    • -AzureActiveDirectoryApplicationIdOrUri
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -AzureActiveDirectoryTenantId
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -DeadLetterEndpoint
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -DeliveryAttributeMapping
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -MaxEventsPerBatch
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -PreferredBatchSizeInKiloByte
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -StorageQueueMessageTtl
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效

之前

$includedEventTypes = "Microsoft.Resources.ResourceWriteFailure", "Microsoft.Resources.ResourceWriteSuccess"
$labels = "Finance", "HR"
New-AzEventGridSubscription -Endpoint https://requestb.in/19qlscd1 -EventSubscriptionName EventSubscription1 -SubjectBeginsWith "TestPrefix" -SubjectEndsWith "TestSuffix" -IncludedEventType $includedEventTypes -Label $labels

之后

$obj = New-AzEventGridWebHookEventSubscriptionDestinationObject -EndpointUrl "https://azpsweb.azurewebsites.net/api/updates"
$topic = Get-AzEventGridTopic -ResourceGroupName azps_test_group_eventgrid -Name azps-topic
New-AzEventGridSubscription -Name azps-eventsub -Scope $topic.Id -Destination $obj -FilterIsSubjectCaseSensitive:$false -FilterSubjectBeginsWith "ExamplePrefix" -FilterSubjectEndsWith "ExampleSuffix"

New-AzEventGridSystemTopic

  • 所有参数集都将发生参数中断性变更
    • -IdentityType
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效

之前

New-AzEventGridSystemTopic -ResourceGroupName MyResourceGroupName -Name Topic1 -Source ServiceBusNamespaceResourceId -TopicType 'Microsoft.ServiceBus.Namespaces' -Location westus2 -Tag @{ Department="Finance"; Environment="Test" }

之后

New-AzEventGridSystemTopic -Name azps-systopic -ResourceGroupName azps_test_group_eventgrid -Location eastus -Source "/subscriptions/{subId}/resourcegroups/azps_test_group_eventgrid/providers/Microsoft.Storage/storageAccounts/azpssa" -TopicType "microsoft.storage.storageaccounts"

New-AzEventGridSystemTopicEventSubscription

  • 所有参数集都将发生参数中断性变更
    • -AzureActiveDirectoryApplicationIdOrUri
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -AzureActiveDirectoryTenantId
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -DeadLetterEndpoint
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -DeliveryAttributeMapping
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -Endpoint
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -EndpointType
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -MaxEventsPerBatch
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -PreferredBatchSizeInKiloByte
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -StorageQueueMessageTtl
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效

之前

$includedEventTypes = "Microsoft.Resources.ResourceWriteFailure", "Microsoft.Resources.ResourceWriteSuccess"
$labels = "Finance", "HR"
New-AzEventGridSystemTopicEventSubscription -ResourceGroupName MyResourceGroup -SystemTopicName Topic1 -EventSubscriptionName EventSubscription1 -Endpoint https://requestb.in/19qlscd1  -SubjectBeginsWith "TestPrefix" -SubjectEndsWith "TestSuffix" -IncludedEventType $includedEventTypes -Label $labels

之后

$obj = New-AzEventGridWebHookEventSubscriptionDestinationObject -EndpointUrl "https://azpsweb.azurewebsites.net"
New-AzEventGridSystemTopicEventSubscription -EventSubscriptionName azps-evnetsub -ResourceGroupName azps_test_group_eventgrid -SystemTopicName azps-systopic -FilterIsSubjectCaseSensitive:$false -FilterSubjectBeginsWith "ExamplePrefix" -FilterSubjectEndsWith "ExampleSuffix" -Destination $obj

New-AzEventGridTopic

  • 所有参数集都将发生参数中断性变更
    • -IdentityType
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -InboundIpRule
      • 参数“InboundIpRule”将发生变更。 参数的类型将从“System.Collections.Hashtable”更改为“IInboundIPRule[]”。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -InputMappingDefaultValue
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -InputMappingField
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效

之前

New-AzEventGridTopic -ResourceGroupName MyResourceGroupName -Name Topic1 -Location westus2 -Tag @{ Department="Finance"; Environment="Test" }

之后

$inboundIpRule = New-AzEventGridInboundIPRuleObject -Action Allow -IPMask "12.18.176.1"
New-AzEventGridTopic -Name azps-topic -ResourceGroupName azps_test_group_eventgrid -Location eastus -PublicNetworkAccess Enabled -InboundIPRule $inboundIpRule

Remove-AzEventGridSubscription

  • 所有参数集都将发生参数中断性变更
    • -DomainInputObject
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -DomainName
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -DomainTopicInputObject
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -DomainTopicName
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -ResourceGroupName
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -ResourceId
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -TopicName
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效

之前

Remove-AzEventGridSubscription -ResourceGroup MyResourceGroup -TopicName Topic1 -EventSubscriptionName EventSubscription1

之后

Remove-AzEventGridSubscription -Name azps-eventsub -Scope "subscriptions/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"

Set-AzEventGridTopic

  • 所有参数集都将发生 Cmdlet 中断性变更
    • Cmdlet 将被弃用。 没有替代项。
    • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效

之前

Set-AzEventGridTopic -ResourceGroup MyResourceGroupName -Name Topic1 -Tag @{ Department="Finance"; Environment="Test" }

之后

Update-AzEventGridPartnerTopic

  • 所有参数集都将发生 Cmdlet 中断性变更

    • 将扩展现有语法。 新语法将支持更新更多属性。
    • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效
  • 所有参数集都将发生参数中断性变更

    • -IdentityType
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效

之前

Update-AzEventGridPartnerTopic -ResourceGroup MyResourceGroupName -Name Topic1 -IdentityType "SystemAssigned"

之后

Update-AzEventGridPartnerTopic -Name default -ResourceGroupName azps_test_group_eventgrid -UserAssignedIdentity "/subscriptions/{subId}/resourcegroups/azps_test_group_eventgrid/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uami"

Update-AzEventGridPartnerTopicEventSubscription

  • 所有参数集都将发生参数中断性变更
    • -DeadLetterEndpoint
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -DeliveryAttributeMapping
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -Endpoint
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -EndpointType
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -StorageQueueMessageTtl
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效

之前

Update-AzEventGridPartnerTopicEventSubscription -EventSubscriptionName ES1 -PartnerTopicName Topic1 -ResourceGroup MyResourceGroupName -Endpoint https://requestb.in/1kxxoui1 -SubjectEndsWith "jpg"

之后

$obj = New-AzEventGridWebHookEventSubscriptionDestinationObject -EndpointUrl "https://azpsweb.azurewebsites.net/api/updates"
Update-AzEventGridPartnerTopicEventSubscription -EventSubscriptionName azps-eventsubname -ResourceGroupName azps_test_group_eventgrid -PartnerTopicName default -FilterIsSubjectCaseSensitive:$false -FilterSubjectBeginsWith "ExamplePrefix" -FilterSubjectEndsWith "ExampleSuffix" -EventDeliverySchema CloudEventSchemaV1_0 -Destination $obj

Update-AzEventGridSubscription

  • 所有参数集都将发生参数中断性变更
    • -AzureActiveDirectoryApplicationIdOrUri
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -AzureActiveDirectoryTenantId
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -DeadLetterEndpoint
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -DeliveryAttributeMapping
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -Endpoint
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -EndpointType
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -MaxEventsPerBatch
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -PreferredBatchSizeInKiloByte
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效

之前

Update-AzEventGridSubscription -EventSubscriptionName ES1 -TopicName Topic1 -ResourceGroup MyResourceGroupName -Endpoint https://requestb.in/1kxxoui1

之后

$obj = New-AzEventGridWebHookEventSubscriptionDestinationObject -EndpointUrl "https://azpsweb.azurewebsites.net/api/updates"
Update-AzEventGridSubscription -Name azps-eventsub -Scope "subscriptions/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX" -Destination $obj -FilterIsSubjectCaseSensitive:$false

Update-AzEventGridSystemTopicEventSubscription

  • 所有参数集都将发生参数中断性变更
    • -DeadLetterEndpoint
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -DeliveryAttributeMapping
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -Endpoint
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -EndpointType
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -StorageQueueMessageTtl
      • 此参数将弃用。
      • 此变更预计将从 Az.EventGrid 版本 2.0.0 和 Az 版本 12.0.0 开始生效

之前

Update-AzEventGridSystemTopicEventSubscription -EventSubscriptionName ES1 -SystemTopicName Topic1 -ResourceGroupName MyResourceGroupName -Endpoint https://requestb.in/1kxxoui1 -SubjectEndsWith "jpg"

之后

$obj = New-AzEventGridWebHookEventSubscriptionDestinationObject -EndpointUrl "https://azpsweb.azurewebsites.net/api/updates"
Update-AzEventGridSystemTopicEventSubscription -EventSubscriptionName azps-evnetsub -ResourceGroupName azps_test_group_eventgrid -SystemTopicName azps-systopic -FilterIsSubjectCaseSensitive:$false -FilterSubjectBeginsWith "ExamplePrefix" -FilterSubjectEndsWith "ExampleSuffix" -Destination $obj

Az.EventHub

New-AzEventHub

  • 所有参数集都将发生参数中断性变更
    • -CleanupPolicy
      • 参数“CleanupPolicy”将发生变更。 参数的类型将从“CleanupPolicyRetentionDescription”更改为“String”。
      • 此变更将于 2024 年 5 月 21 日生效 - 此变更预计将从 Az 版本“12.0.0”开始生效
      • 此变更预计从版本“5.0.0”开始生效
    • -Encoding
      • 参数“Encoding”将发生变更。 参数的类型将从“EncodingCaptureDescription”更改为“String”。
      • 此变更将于 2024 年 5 月 21 日生效 - 此变更预计将从 Az 版本“12.0.0”开始生效
      • 此变更预计从版本“5.0.0”开始生效
    • -IdentityType
      • 参数“IdentityType”将发生变更。 参数的类型将从“CaptureIdentityType”更改为“String”。
      • 此变更将于 2024 年 5 月 21 日生效 - 此变更预计将从 Az 版本“12.0.0”开始生效
      • 此变更预计从版本“5.0.0”开始生效
    • -Status
      • 参数“Status”将发生变更。 参数的类型将从“EntityStatus”更改为“String”。
      • 此变更将于 2024 年 5 月 21 日生效 - 此变更预计将从 Az 版本“12.0.0”开始生效
      • 此变更预计从版本“5.0.0”开始生效

之前

New-AzEventHub -Name $env.eventHub9 -ResourceGroupName $env.resourceGroup -NamespaceName $eventHubNamespace.Name -PartitionCount 2 -CleanupPolicy Delete -IdentityType UserAssigned  

 (CleanupPolicy type is CleanupPolicyRetentionDescription), 
 (Status type is EntityStatus),
 (IdentityType type is CaptureIdentiType), 
 (EncodingType type is EncodingCaptureDescription)

之后

New-AzEventHub -Name $env.eventHub9 -ResourceGroupName $env.resourceGroup -NamespaceName $eventHubNamespace.Name -PartitionCount 2 -CleanupPolicy Delete -IdentityType UserAssigned  

 (CleanupPolicy type is String),
 (Status type is String), 
 (IdentityType type is String), 
 (EncodingType type is String)

New-AzEventHubAuthorizationRule

  • 所有参数集都将发生参数中断性变更
    • -Rights
      • 参数“Rights”将发生变更。
      • 此变更将于 2024 年 5 月 21 日生效 - 此变更预计将从 Az 版本“12.0.0”开始生效
      • 此变更预计从版本“5.0.0”开始生效

之前

New-AzEventHubAuthorizationRule -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -Name $env.authRule2 -Rights @("Manage", "Send", "Listen")
 
 (Rights is of type AccessRights[])

之后

New-AzEventHubAuthorizationRule -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -Name $env.authRule2 -Rights @("Manage", "Send", "Listen")
 
 (Rights is of type System.String[])

New-AzEventHubIPRuleConfig

  • 所有参数集都将发生参数中断性变更
    • -Action
      • 参数“Action”即将发生更改。
      • 此变更将于 2024 年 5 月 21 日生效 - 此变更预计将从 Az 版本“12.0.0”开始生效
      • 此变更预计从版本“5.0.0”开始生效

之前

(Action is of type NetworkRuleIPAction )

之后

(Action is of type String)

New-AzEventHubKey

  • 所有参数集都将发生参数中断性变更
    • -KeyType
      • 参数“KeyType”将发生变更。
      • 此变更将于 2024 年 5 月 21 日生效 - 此变更预计将从 Az 版本“12.0.0”开始生效
      • 此变更预计从版本“5.0.0”开始生效

之前

New-AzEventHubKey -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -Name $env.authRule -KeyType PrimaryKey

(KeyType is of type KeyType)

之后

New-AzEventHubKey -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -Name $env.authRule -KeyType PrimaryKey

(KeyType is of type String)

New-AzEventHubNamespace

  • 所有参数集都将发生参数中断性变更
    • -IdentityType
      • 参数“IdentityType”将发生变更。
      • 此变更将于 2024 年 5 月 21 日生效 - 此变更预计将从 Az 版本“12.0.0”开始生效
      • 此变更预计从版本“5.0.0”开始生效
    • -PublicNetworkAccess
      • 参数“PublicNetworkAccess”将发生变更。
      • 此变更将于 2024 年 5 月 21 日生效 - 此变更预计将从 Az 版本“12.0.0”开始生效
      • 此变更预计从版本“5.0.0”开始生效
    • -SkuName
      • 参数“SkuName”将发生变更。
      • 此变更将于 2024 年 5 月 21 日生效 - 此变更预计将从 Az 版本“12.0.0”开始生效
      • 此变更预计从版本“5.0.0”开始生效

之前

New-AzEventHubNamespace -ResourceGroupName $env.resourceGroup -Name $env.namespaceV4 -SkuName Premium -Location eastus -IdentityType SystemAssigned -PublicNetworkAccess Disabled

( IdentityType is ManagedServiceIdentityType),
(PublicNetworkAccess is of type PublicNetworkAccess),
( SkuName is of type SkuName)

之后

New-AzEventHubNamespace -ResourceGroupName $env.resourceGroup -Name $env.namespaceV4 -SkuName Premium -Location eastus -IdentityType SystemAssigned -PublicNetworkAccess Disabled

( IdentityType is String),
(PublicNetworkAccess is of type String),
( SkuName is of type String)

New-AzEventHubNamespaceV2

  • 所有参数集都将发生参数中断性变更
    • -IdentityType
      • 参数“IdentityType”将发生变更。
      • 此变更将于 2024 年 5 月 21 日生效 - 此变更预计将从 Az 版本“12.0.0”开始生效
      • 此变更预计从版本“5.0.0”开始生效
    • -PublicNetworkAccess
      • 参数“PublicNetworkAccess”将发生变更。
      • 此变更将于 2024 年 5 月 21 日生效 - 此变更预计将从 Az 版本“12.0.0”开始生效
      • 此变更预计从版本“5.0.0”开始生效
    • -SkuName
      • 参数“SkuName”将发生变更。
      • 此变更将于 2024 年 5 月 21 日生效 - 此变更预计将从 Az 版本“12.0.0”开始生效
      • 此变更预计从版本“5.0.0”开始生效

之前

New-AzEventHubNamespaceV2 -ResourceGroupName $env.resourceGroup -Name $env.namespaceV4 -SkuName Premium -Location eastus -IdentityType SystemAssigned -PublicNetworkAccess Disabled

( IdentityType is ManagedServiceIdentityType),
(PublicNetworkAccess is of type PublicNetworkAccess),
( SkuName is of type SkuName)

之后

New-AzEventHubNamespaceV2 -ResourceGroupName $env.resourceGroup -Name $env.namespaceV4 -SkuName Premium -Location eastus -IdentityType SystemAssigned -PublicNetworkAccess Disabled

( IdentityType is String),
(PublicNetworkAccess is of type String),
( SkuName is of type String)

New-AzEventHubSchemaGroup

  • 所有参数集都将发生参数中断性变更
    • -SchemaCompatibility
      • 参数“SchemaCompatibility”将发生变更。 参数的类型将从“SchemaCompatibility”更改为“String”。
      • 此变更将于 2024 年 5 月 21 日生效 - 此变更预计将从 Az 版本“12.0.0”开始生效
      • 此变更预计从版本“5.0.0”开始生效
    • -SchemaType
      • 参数“SchemaType”将发生变更。 参数的类型将从“SchemaType”更改为“String”。
      • 此变更将于 2024 年 5 月 21 日生效 - 此变更预计将从 Az 版本“12.0.0”开始生效
      • 此变更预计从版本“5.0.0”开始生效

之前

New-AzEventHubSchemaGroup -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -Name $env.schemaGroup2 -SchemaCompatibility Forward -SchemaType Avro -GroupProperty @{a='b'; c='d'}

(SchemaCompatibility is of type SchemaCompatibility)
(SchemaType is of type SchemaType)

之后

New-AzEventHubSchemaGroup -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -Name $env.schemaGroup2 -SchemaCompatibility Forward -SchemaType Avro -GroupProperty @{a='b'; c='d'}

(SchemaCompatibility is of type String),
(SchemaType is of type String)

New-AzEventHubThrottlingPolicyConfig

  • 所有参数集都将发生参数中断性变更
    • -MetricId
      • 参数“MetricId”将发生变更。
      • 此变更将于 2024 年 5 月 21 日生效 - 此变更预计将从 Az 版本“12.0.0”开始生效
      • 此变更预计从版本“5.0.0”开始生效

之前

(MetricId is of type MetricId)

之后

(MetricId is of type String)

Set-AzEventHub

  • 所有参数集都将发生参数中断性变更
    • -Encoding
      • 参数“Encoding”将发生变更。
      • 此变更将于 2024 年 5 月 21 日生效 - 此变更预计将从 Az 版本“12.0.0”开始生效
      • 此变更预计从版本“5.0.0”开始生效
    • -IdentityType
      • 参数“IdentityType”将发生变更。
      • 此变更将于 2024 年 5 月 21 日生效 - 此变更预计将从 Az 版本“12.0.0”开始生效
      • 此变更预计从版本“5.0.0”开始生效
    • -Status
      • 参数“Status”将发生变更。
      • 此变更将于 2024 年 5 月 21 日生效 - 此变更预计将从 Az 版本“12.0.0”开始生效
      • 此变更预计从版本“5.0.0”开始生效

之前

Set-AzEventHub -Name $env.eventHub9 -ResourceGroupName $env.resourceGroup -NamespaceName $eventHubNamespace.Name  -IdentityType UserAssigned  

 
 (Status type is EntityStatus),
 (IdentityType type is CaptureIdentiType), 
 (Encoding type is EncodingCaptureDescription)

之后

Set-AzEventHub -Name $env.eventHub9 -ResourceGroupName $env.resourceGroup -NamespaceName $eventHubNamespace.Name  -IdentityType UserAssigned  

 
 (Status type is String),
 (IdentityType type is String), 
 (Encoding type is String)

Set-AzEventHubAuthorizationRule

  • 所有参数集都将发生参数中断性变更
    • -Rights
      • 参数“Rights”将发生变更。
      • 此变更将于 2024 年 5 月 21 日生效 - 此变更预计将从 Az 版本“12.0.0”开始生效
      • 此变更预计从版本“5.0.0”开始生效

之前

Set-AzEventHubAuthorizationRule -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -Name $env.authRule2 -Rights @("Manage", "Send", "Listen")
 
 (Rights is of type AccessRights[])

之后

Set-AzEventHubAuthorizationRule -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -Name $env.authRule2 -Rights @("Manage", "Send", "Listen")
 
 (Rights is of type System.String[])

Set-AzEventHubNamespace

  • 所有参数集都将发生参数中断性变更
    • -IdentityType
      • 参数“IdentityType”将发生变更。
      • 此变更将于 2024 年 5 月 21 日生效 - 此变更预计将从 Az 版本“12.0.0”开始生效
      • 此变更预计从版本“5.0.0”开始生效
    • -PublicNetworkAccess
      • 参数“PublicNetworkAccess”将发生变更。
      • 此变更将于 2024 年 5 月 21 日生效 - 此变更预计将从 Az 版本“12.0.0”开始生效
      • 此变更预计从版本“5.0.0”开始生效

之前

Set-AzEventHubNamespace -ResourceGroupName $env.resourceGroup -Name $env.namespaceV4  -IdentityType SystemAssigned -PublicNetworkAccess Disabled

( IdentityType is of type ManagedServiceIdentityType),
(PublicNetworkAccess is of type PublicNetworkAccess)

之后

Set-AzEventHubNamespace -ResourceGroupName $env.resourceGroup -Name $env.namespaceV4  -IdentityType SystemAssigned -PublicNetworkAccess Disabled

( IdentityType is of type String),
(PublicNetworkAccess is of type String)

Set-AzEventHubNamespaceV2

  • 所有参数集都将发生参数中断性变更
    • -IdentityType
      • 参数“IdentityType”将发生变更。
      • 此变更将于 2024 年 5 月 21 日生效 - 此变更预计将从 Az 版本“12.0.0”开始生效
      • 此变更预计从版本“5.0.0”开始生效
    • -PublicNetworkAccess
      • 参数“PublicNetworkAccess”将发生变更。
      • 此变更将于 2024 年 5 月 21 日生效 - 此变更预计将从 Az 版本“12.0.0”开始生效
      • 此变更预计从版本“5.0.0”开始生效

之前

Set-AzEventHubNamespaceV2 -ResourceGroupName $env.resourceGroup -Name $env.namespaceV4  -IdentityType SystemAssigned -PublicNetworkAccess Disabled

( IdentityType is of type ManagedServiceIdentityType),
(PublicNetworkAccess is of type PublicNetworkAccess)

之后

Set-AzEventHubNamespaceV2 -ResourceGroupName $env.resourceGroup -Name $env.namespaceV4  -IdentityType SystemAssigned -PublicNetworkAccess Disabled

( IdentityType is of type String),
(PublicNetworkAccess is of type String)

Set-AzEventHubNetworkRuleSet

  • 所有参数集都将发生参数中断性变更
    • -DefaultAction
      • 参数“DefaultAction”将发生变更。
      • 此变更将于 2024 年 5 月 21 日生效 - 此变更预计将从 Az 版本“12.0.0”开始生效
      • 此变更预计从版本“5.0.0”开始生效
    • -PublicNetworkAccess
      • 参数“PublicNetworkAccess”将发生变更。
      • 此变更将于 2024 年 5 月 21 日生效 - 此变更预计将从 Az 版本“12.0.0”开始生效
      • 此变更预计从版本“5.0.0”开始生效

之前

Set-AzEventHubNetworkRuleSet -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -PublicNetworkAccess Disabled -DefaultAction deny

 ( DefaultAction is of type DefaultAction),
 ( PublicNetworkAccess is of type PublicNetworkAccess)

完成

Set-AzEventHubNetworkRuleSet -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -PublicNetworkAccess Disabled -DefaultAction deny

 ( DefaultAction is of type String),
 ( PublicNetworkAccess is of type String)

Az.KeyVault

Add-AzKeyVaultKey

  • 所有参数集都将发生参数中断性变更
    • -UseDefaultCVMPolicy
      • 将删除脱机回退策略。 如果无法从 MAA Service Discovery API 获取区域默认 CVM SKR 策略,密钥创建将失败。
      • 此更改预计将从 Az.KeyVault 版本 6.0.0 和 Az 版本 12.0.0 开始生效

Invoke-AzKeyVaultKeyOperation

从 Invoke-AzKeyVaultKeyOperation 中删除参数值,并从输出类型 PSKeyOperationResult 中删除属性 Result

之前

$encryptedData = Invoke-AzKeyVaultKeyOperation -Operation Encrypt -Algorithm RSA1_5 -VaultName test-kv -Name test-key -Value (ConvertTo-SecureString -String "test" -AsPlainText -Force)

之后

"$plainText = ""test""
$byteArray = [system.Text.Encoding]::UTF8.GetBytes($plainText)
$encryptedData = Invoke-AzKeyVaultKeyOperation -Operation Encrypt -Algorithm RSA1_5 -VaultName test-kv -Name test-key -ByteArrayValue $byteArray"

New-AzKeyVault

将 New-AzKeyVault 和 Update-AzKeyVault 中的 DisableRbacAuthorization 替换为了 EnableRbacAuthorization,默认情况下将启用 RbacAuthorization

之前

New-AzKeyVault -VaultName 'Contoso03Vault' -ResourceGroupName 'Group14' -Location 'East US' -DisableRbacAuthorization 

之后

New-AzKeyVault -VaultName 'Contoso03Vault' -ResourceGroupName 'Group14' -Location 'East US' 

Update-AzKeyVault

将 Update-AzKeyVault 中的 DisableRbacAuthorization 替换为了参数 EnableRbacAuthorization

之前

Get-AzKeyVault -VaultName $keyVaultName -ResourceGroupName $resourceGroupName | Update-AzKeyVault -EnableRbacAuthorization $true

之后

Get-AzKeyVault -VaultName $keyVaultName -ResourceGroupName $resourceGroupName | Update-AzKeyVault -DisableRbacAuthorization $false

Az.RecoveryServices

Get-AzRecoveryServicesAsrVaultContext

  • 所有参数集都将发生 Cmdlet 中断性变更
    • 输出类型“Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRVaultSettings”正在更改
    • 将弃用此输出类型中的以下属性:ResouceType
    • 将向此输出类型中添加以下属性:ResourceType
    • 此更改预计将从 Az.RecoveryServices 版本 7.0.0 和 Az 版本 12.0.0 开始生效

之前

$VaultSettings = Get-AzRecoveryServicesAsrVaultContext
$ResourceType = $VaultSettings.ResouceType

之后

$VaultSettings = Get-AzRecoveryServicesAsrVaultContext
$ResourceType = $VaultSettings.ResourceType

Import-AzRecoveryServicesAsrVaultSettingsFile

  • 所有参数集都将发生 Cmdlet 中断性变更
    • 输出类型“Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRVaultSettings”正在更改
    • 将弃用此输出类型中的以下属性:ResouceType
    • 将向此输出类型中添加以下属性:ResourceType
    • 此更改预计将从 Az.RecoveryServices 版本 7.0.0 和 Az 版本 12.0.0 开始生效

之前

$VaultSettings = Import-AzRecoveryServicesAsrVaultSettingsFile -Path $FilePath
$ResourceType = $VaultSettings.ResouceType

之后

$VaultSettings = Import-AzRecoveryServicesAsrVaultSettingsFile -Path $FilePath
$ResourceType = $VaultSettings.ResourceType

Set-AzRecoveryServicesAsrVaultContext

  • 所有参数集都将发生 Cmdlet 中断性变更
    • 输出类型“Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRVaultSettings”正在更改
    • 将弃用此输出类型中的以下属性:ResouceType
    • 将向此输出类型中添加以下属性:ResourceType
    • 此更改预计将从 Az.RecoveryServices 版本 7.0.0 和 Az 版本 12.0.0 开始生效

之前

$vaultSettings = Set-AzRecoveryServicesAsrVaultContext -Vault $RecoveryServicesVault
$ResourceType = $VaultSettings.ResouceType

调整后的文本

$vaultSettings = Set-AzRecoveryServicesAsrVaultContext -Vault $RecoveryServicesVault
$ResourceType = $VaultSettings.ResourceType

Az.Resources

Get-AzPolicyAssignment

  • 所有参数集都将发生 Cmdlet 中断性变更
    • 将更改输出类型 Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyAssignment
    • 输出类型中的以下属性将被弃用:Properties、Identity、ResourceId、ResourceName、ResourceType、PolicyAssignmentId
    • 以下属性将添加到输出类型:“Description”、“DisplayName”、“EnforcementMode”、“Metadata”、“NonComplianceMessages”、“NotScopes”、“Parameters”、“PolicyDefinitionId”、“Scope”
    • 此更改预计将从 Az.Resources 版本 7.1.0 和 Az 版本 12.0.0 开始生效

之前

$policyAssignment = Get-AzPolicyAssignment -Name MyAssignment
$description = $policyAssignment.Properties.Description
$principalId = $policyAssignment.Identity.PrincipalId

之后

$policyAssignment = Get-AzPolicyAssignment -Name MyAssignment
$description = $policyAssignment.Description
$principalId = $policyAssignment.PrincipalId

Compatible option:
$policyAssignment = Get-AzPolicyAssignment -Name MyAssignment -BackwardCompatible
$description = $policyAssignment.Properties.Description
$principalId = $policyAssignment.Identity.PrincipalId

Get-AzPolicyDefinition

  • 所有参数集都将发生 Cmdlet 中断性变更
    • 输出类型“Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyDefinition”即将发生更改
    • 输出类型中的以下属性将被弃用:Properties、ResourceId、ResourceName、ResourceType、PolicyDefinitionId
    • 以下属性将添加到输出类型:“Description”、“DisplayName”、“Metadata”、“Mode”、“Parameters”、“PolicyRule”、“PolicyType”
    • 此更改预计将从 Az.Resources 版本 7.1.0 和 Az 版本 12.0.0 开始生效

之前

$policyDefinition = Get-AzPolicyDefinition -Builtin | select -First 1
$policyRule = $policyDefinition.Properties.PolicyRule


之后

$policyDefinition = Get-AzPolicyDefinition -Builtin | select -First 1
$policyRule = $policyDefinition.PolicyRule

Compatible option:
$policyDefinition = Get-AzPolicyDefinition -Builtin -BackwardCompatible | select -First 1
$policyRule = $policyDefinition.Properties.PolicyRule

Get-AzPolicyExemption

  • 所有参数集都将发生 Cmdlet 中断性变更
    • 输出类型“Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyExemption”即将发生更改
    • 输出类型中的以下属性将被弃用:Properties、ResourceId、ResourceName、ResourceType
    • 以下属性将添加到输出类型:“Description”、“DisplayName”、“ExemptionCategory”、“ExpiresOn”、“Metadata”、“PolicyAssignmentId”、“PolicyDefinitionReferenceIds”
    • 此更改预计将从 Az.Resources 版本 7.1.0 和 Az 版本 12.0.0 开始生效

之前

$policyExemption = Get-AzPolicyExemption -Scope /providers/Microsoft.Management/managementGroups/myManagementGroup -Name MyExemption
$expiresOn = $policyExemption.Properties.ExpiresOn

之后

$policyExemption = Get-AzPolicyExemption -Scope /providers/Microsoft.Management/managementGroups/myManagementGroup -Name MyExemption
$expiresOn = $policyExemption.ExpiresOn

Compatible option:
$policyExemption = Get-AzPolicyExemption -Scope /providers/Microsoft.Management/managementGroups/myManagementGroup -Name MyExemption -BackwardCompatible
$expiresOn = $policyExemption.Properties.ExpiresOn

Get-AzPolicySetDefinition

  • 所有参数集都将发生 Cmdlet 中断性变更
    • 输出类型“Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicySetDefinition”即将发生更改
    • 输出类型中的以下属性将被弃用:Properties、ResourceId、ResourceName、ResourceType、PolicySetDefinitionId
    • 以下属性将添加到输出类型:“Description”、“DisplayName”、“Metadata”、“Parameter”、“PolicyDefinitionGroup”、“PolicyDefinitions”、“PolicyType”
    • 此更改预计将从 Az.Resources 版本 7.1.0 和 Az 版本 12.0.0 开始生效

之前

$policySetDefinition = Get-AzPolicySetDefinition -Builtin | select -First 1
$policySetParameters = $policySetDefinition.Properties.Parameters

之后

$policySetDefinition = Get-AzPolicySetDefinition -Builtin | select -First 1
$policySetParameters = $policySetDefinition.Parameter

Compatible option:
$policySetDefinition = Get-AzPolicySetDefinition -Builtin -BackwardCompatible | select -First 1
$policySetParameters = $policySetDefinition.Properties.Parameters

New-AzPolicyAssignment

  • 所有参数集都将发生 Cmdlet 中断性变更
    • 将更改输出类型 Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyAssignment
    • 输出类型中的以下属性将被弃用:Properties、Identity、ResourceId、ResourceName、ResourceType、PolicyAssignmentId
    • 以下属性将添加到输出类型:“Description”、“DisplayName”、“EnforcementMode”、“Metadata”、“NonComplianceMessages”、“NotScopes”、“Parameters”、“PolicyDefinitionId”、“Scope”
    • 此更改预计将从 Az.Resources 版本 7.1.0 和 Az 版本 12.0.0 开始生效

之前

$policyAssignment = New-AzPolicyAssignment -Name MyAssignment -PolicyDefinition MyPolicyDefinition
$enforcementMode = $policyAssignment.Properties.EnforcementMode
$principalId = $policyAssignment.Identity.PrincipalId

之后

$policyAssignment = New-AzPolicyAssignment -Name MyAssignment -PolicyDefinition MyPolicyDefinition
$enforcementMode = $policyAssignment.EnforcementMode
$principalId = $policyAssignment.PrincipalId

Compatible option:
$policyAssignment = New-AzPolicyAssignment -Name MyAssignment -PolicyDefinition MyPolicyDefinition -BackwardCompatible
$enforcementMode = $policyAssignment.Properties.EnforcementMode
$principalId = $policyAssignment.Identity.PrincipalId

New-AzPolicyDefinition

  • 所有参数集都将发生 Cmdlet 中断性变更
    • 输出类型“Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyDefinition”即将发生更改
    • 输出类型中的以下属性将被弃用:Properties、ResourceId、ResourceName、ResourceType、PolicyDefinitionId
    • 以下属性将添加到输出类型:“Description”、“DisplayName”、“Metadata”、“Mode”、“Parameters”、“PolicyRule”、“PolicyType”
    • 此更改预计将从 Az.Resources 版本 7.1.0 和 Az 版本 12.0.0 开始生效

之前

$policyRule = '{ "if": { "field": "type", "like": "Microsoft.DesktopVirtualization/*" }, "then": { "effect": "deny" } }'
$policyDefinition = New-AzPolicyDefinition -Name MyDefinition -Policy $policyRule
$policyType = $policyDefinition.Properties.PolicyType


之后

$policyRule = '{ "if": { "field": "type", "like": "Microsoft.DesktopVirtualization/*" }, "then": { "effect": "deny" } }'
$policyDefinition = New-AzPolicyDefinition -Name MyDefinition -Policy $policyRule
$policyType = $policyDefinition.PolicyType

Compatible option:
$policyDefinition = New-AzPolicyDefinition -Name MyDefinition -Policy $policyRule -BackwardCompatible
$policyType = $policyDefinition.Properties.PolicyType


New-AzPolicyExemption

  • 所有参数集都将发生 Cmdlet 中断性变更
    • 输出类型“Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyExemption”即将发生更改
    • 输出类型中的以下属性将被弃用:Properties、ResourceId、ResourceName、ResourceType
    • 以下属性将添加到输出类型:“Description”、“DisplayName”、“ExemptionCategory”、“ExpiresOn”、“Metadata”、“PolicyAssignmentId”、“PolicyDefinitionReferenceIds”
    • 此更改预计将从 Az.Resources 版本 7.1.0 和 Az 版本 12.0.0 开始生效

之前

$policyExemption = Get-AzPolicyAssignment -Name MyAssignment | New-AzPolicyExemption -Name MyExemption -ExemptionCategory Mitigated
$policyDefinitionId = $policyExemption.Properties.PolicyAssignmentId


之后

$policyExemption = Get-AzPolicyAssignment -Name MyAssignment | New-AzPolicyExemption -Name MyExemption -ExemptionCategory Mitigated
$policyDefinitionId = $policyExemption.PolicyAssignmentId

Compatible option:
$policyExemption = Get-AzPolicyAssignment -Name MyAssignment | New-AzPolicyExemption -Name MyExemption -ExemptionCategory Mitigated -BackwardCompatible
$policyDefinitionId = $policyExemption.Properties.PolicyAssignmentId

New-AzPolicySetDefinition

  • 所有参数集都将发生 Cmdlet 中断性变更
    • 输出类型“Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicySetDefinition”即将发生更改
    • 输出类型中的以下属性将被弃用:Properties、ResourceId、ResourceName、ResourceType、PolicySetDefinitionId
    • 以下属性将添加到输出类型:“Description”、“DisplayName”、“Metadata”、“Parameters”、“PolicyDefinitionGroups”、“PolicyDefinitions”、“PolicyType”
    • 此更改预计将从 Az.Resources 版本 7.1.0 和 Az 版本 12.0.0 开始生效

之前

$policyDefinitionReferences = ('[{ "policyDefinitionId": "' + (Get-AzPolicyDefinition -Name MyDefinition).ResourceId + '"}]')
$policySetDefinition = New-AzPolicySetDefinition -Name MySetDefinition -PolicyDefinition $policyDefinitionReferences
$policyDefinitionReferenceId = $policySetDefinition.Properties.PolicyDefinitions[0].policyDefinitionReferenceId


之后

$policyDefinitionReferences = ('[{ "policyDefinitionId": "' + (Get-AzPolicyDefinition -Name MyDefinition).ResourceId + '"}]')
$policySetDefinition = New-AzPolicySetDefinition -Name MySetDefinition -PolicyDefinition $policyDefinitionReferences
$policyDefinitionReferenceId = $policySetDefinition.PolicyDefinition[0].policyDefinitionReferenceId

Compatible option:
$policySetDefinition = New-AzPolicySetDefinition -Name MySetDefinition -PolicyDefinition $policyDefinitionReferences 
$policyDefinitionReferenceId = $policySetDefinition.Properties.PolicyDefinitions[0].policyDefinitionReferenceId

Set-AzPolicyAssignment

  • 所有参数集都将发生 Cmdlet 中断性变更
    • 将更改输出类型 Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyAssignment
    • 输出类型中的以下属性将被弃用:Properties、Identity、ResourceId、ResourceName、ResourceType、PolicyAssignmentId
    • 以下属性将添加到输出类型:“Description”、“DisplayName”、“EnforcementMode”、“Metadata”、“NonComplianceMessages”、“NotScopes”、“Parameters”、“PolicyDefinitionId”、“Scope”
    • 此更改预计将从 Az.Resources 版本 7.1.0 和 Az 版本 12.0.0 开始生效

之前

$policyAssignment = Set-AzPolicyAssignment -Name MyAssignment -DisplayName 'My cool assignment'
$displayName = $policyAssignment.Properties.DisplayName
$principalId = $policyAssignment.Identity.PrincipalId

之后

$policyAssignment = Update-AzPolicyAssignment -Name MyAssignment -DisplayName 'My cool assignment'
$displayName = $policyAssignment.DisplayName
$principalId = $policyAssignment.PrincipalId

Compatible option:
$policyAssignment = Set-AzPolicyAssignment -Name MyAssignment -DisplayName 'My cool assignment' -BackwardCompatible
$displayName = $policyAssignment.Properties.DisplayName
$principalId = $policyAssignment.Identity.PrincipalId

Set-AzPolicyDefinition

  • 所有参数集都将发生 Cmdlet 中断性变更
    • 输出类型“Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyDefinition”即将发生更改
    • 输出类型中的以下属性将被弃用:Properties、ResourceId、ResourceName、ResourceType、PolicyDefinitionId
    • 以下属性将添加到输出类型:“Description”、“DisplayName”、“Metadata”、“Mode”、“Parameters”、“PolicyRule”、“PolicyType”
    • 此更改预计将从 Az.Resources 版本 7.1.0 和 Az 版本 12.0.0 开始生效

之前

$policyDefinition = Set-AzPolicyDefinition -Name MyDefinition -Description 'A much better policy definition'
$description = $policyDefinition.Properties.Description


之后

$policyDefinition = Update-AzPolicyDefinition -Name MyDefinition -Description 'A much better policy definition'
$description = $policyDefinition.Description

Compatible option:
$policyDefinition = Set-AzPolicyDefinition -Name MyDefinition -Description 'A much better policy definition' -BackwardCompatible
$description = $policyDefinition.Properties.Description

Set-AzPolicyExemption

  • 所有参数集都将发生 Cmdlet 中断性变更
    • 输出类型“Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyExemption”即将发生更改
    • 输出类型中的以下属性将被弃用:Properties、ResourceId、ResourceName、ResourceType
    • 以下属性将添加到输出类型:“Description”、“DisplayName”、“ExemptionCategory”、“ExpiresOn”、“Metadata”、“PolicyAssignmentId”、“PolicyDefinitionReferenceIds”
    • 此更改预计将从 Az.Resources 版本 7.1.0 和 Az 版本 12.0.0 开始生效

之前

$policyExemption = Set-AzPolicyExemption -Name MyExemption -ExemptionCategory Waiver
$exemptionCategory = $policyExemption.Properties.ExemptionCategory


之后

$policyExemption = Update-AzPolicyExemption -Name MyExemption -ExemptionCategory Waiver
$exemptionCategory = $policyExemption.ExemptionCategory

Compatbile option:
$policyExemption = Update-AzPolicyExemption -Name MyExemption -ExemptionCategory Waiver -BackwardCompatible
$exemptionCategory = $policyExemption.Properties.ExemptionCategory


Set-AzPolicySetDefinition

  • 所有参数集都将发生 Cmdlet 中断性变更
    • 输出类型“Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicySetDefinition”即将发生更改
    • 输出类型中的以下属性将被弃用:Properties、ResourceId、ResourceName、ResourceType、PolicySetDefinitionId
    • 以下属性将添加到输出类型:“Description”、“DisplayName”、“Metadata”、“Parameters”、“PolicyDefinitionGroups”、“PolicyDefinitions”、“PolicyType”
    • 此更改预计将从 Az.Resources 版本 7.1.0 和 Az 版本 12.0.0 开始生效

之前

$policySetDefinition = Set-AzPolicySetDefinition -Name MySetDefinition -Metadata '{ "MyThing": "A really good thing" }'
$myThing = $policySetDefinition.Properties.Metadata.MyThing


之后

$policySetDefinition = Update-AzPolicySetDefinition -Name MySetDefinition -Metadata '{ "MyThing": "A really good thing" }'
$myThing = $policySetDefinition.Metadata.MyThing

Compatible option:
$policySetDefinition = Set-AzPolicySetDefinition -Name MySetDefinition -Metadata '{ "MyThing": "A really good thing" }' -BackwardCompatible
$myThing = $policySetDefinition.Properties.Metadata.MyThing


Az.ServiceBus

New-AzServiceBusAuthorizationRule

  • 所有参数集都将发生参数中断性变更
    • -Rights
      • 参数“Rights”将发生变更。
      • 此变更将于 2024 年 5 月 21 日生效 - 此变更预计将从 Az 版本“12.0.0”开始生效
      • 此更改预计从版本“4.0.0”开始生效

之前

New-AzServiceBusAuthorizationRule -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -Name $env.authRule2 -Rights @("Manage", "Send", "Listen")
 
 (Rights is of type AccessRights[])

之后

New-AzServiceBusAuthorizationRule -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -Name $env.authRule2 -Rights @("Manage", "Send", "Listen")
 
 (Rights is of type System.String[])

New-AzServiceBusIPRuleConfig

  • 所有参数集都将发生参数中断性变更
    • -Action
      • 参数“Action”即将发生更改。
      • 此变更将于 2024 年 5 月 21 日生效 - 此变更预计将从 Az 版本“12.0.0”开始生效
      • 此更改预计从版本“4.0.0”开始生效

之前

(Action is of type NetworkRuleIPAction )

之后

(Action is of type String )

New-AzServiceBusKey

  • 所有参数集都将发生参数中断性变更
    • -KeyType
      • 参数“KeyType”将发生变更。
      • 此变更将于 2024 年 5 月 21 日生效 - 此变更预计将从 Az 版本“12.0.0”开始生效
      • 此更改预计从版本“4.0.0”开始生效

之前

New-AzServiceBusKey -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -Name $env.authRule -KeyType PrimaryKey

(KeyType is of type KeyType)

之后

New-AzServiceBusKey -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -Name $env.authRule -KeyType PrimaryKey

(KeyType is of type String)

New-AzServiceBusNamespace

  • 所有参数集都将发生参数中断性变更
    • -IdentityType
      • 参数“IdentityType”将发生变更。
      • 此变更将于 2024 年 5 月 21 日生效 - 此变更预计将从 Az 版本“12.0.0”开始生效
      • 此更改预计从版本“4.0.0”开始生效
    • -PublicNetworkAccess
      • 参数“PublicNetworkAccess”将发生变更。
      • 此变更将于 2024 年 5 月 21 日生效 - 此变更预计将从 Az 版本“12.0.0”开始生效
      • 此更改预计从版本“4.0.0”开始生效
    • -SkuName
      • 参数“SkuName”将发生变更。
      • 此变更将于 2024 年 5 月 21 日生效 - 此变更预计将从 Az 版本“12.0.0”开始生效
      • 此更改预计从版本“4.0.0”开始生效

之前

New-ServiceBusNamespace -ResourceGroupName $env.resourceGroup -Name $env.namespaceV4 -SkuName Premium -Location eastus -IdentityType SystemAssigned -PublicNetworkAccess Disabled

( IdentityType is ManagedServiceIdentityType),
(PublicNetworkAccess is of type PublicNetworkAccess),
( SkuName is of type SkuName)

之后

New-ServiceBusNamespace -ResourceGroupName $env.resourceGroup -Name $env.namespaceV4 -SkuName Premium -Location eastus -IdentityType SystemAssigned -PublicNetworkAccess Disabled

( IdentityType is String),
(PublicNetworkAccess is of type String),
( SkuName is of type String)

New-AzServiceBusNamespaceV2

  • 所有参数集都将发生参数中断性变更
    • -IdentityType
      • 参数“IdentityType”将发生变更。
      • 此变更将于 2024 年 5 月 21 日生效 - 此变更预计将从 Az 版本“12.0.0”开始生效
      • 此更改预计从版本“4.0.0”开始生效
    • -PublicNetworkAccess
      • 参数“PublicNetworkAccess”将发生变更。
      • 此变更将于 2024 年 5 月 21 日生效 - 此变更预计将从 Az 版本“12.0.0”开始生效
      • 此更改预计从版本“4.0.0”开始生效
    • -SkuName
      • 参数“SkuName”将发生变更。
      • 此变更将于 2024 年 5 月 21 日生效 - 此变更预计将从 Az 版本“12.0.0”开始生效
      • 此更改预计从版本“4.0.0”开始生效

之前

New-ServiceBusNamespaceV2 -ResourceGroupName $env.resourceGroup -Name $env.namespaceV4 -SkuName Premium -Location eastus -IdentityType SystemAssigned -PublicNetworkAccess Disabled

( IdentityType is ManagedServiceIdentityType),
(PublicNetworkAccess is of type PublicNetworkAccess),
( SkuName is of type SkuName)

之后

New-ServiceBusNamespaceV2 -ResourceGroupName $env.resourceGroup -Name $env.namespaceV4 -SkuName Premium -Location eastus -IdentityType SystemAssigned -PublicNetworkAccess Disabled

( IdentityType is String),
(PublicNetworkAccess is of type String),
( SkuName is of type String)

New-AzServiceBusQueue

  • 所有参数集都将发生参数中断性变更
    • -Status
      • 参数“Status”将发生变更。 参数的类型将从“EntityStatus”更改为“String”。
      • 此变更将于 2024 年 5 月 21 日生效 - 此变更预计将从 Az 版本“12.0.0”开始生效
      • 此更改预计从版本“4.0.0”开始生效

之前

(Status is of type EntityStatus)

之后

(Status is of type String)

New-AzServiceBusSubscription

  • 所有参数集都将发生参数中断性变更
    • -Status
      • 参数“Status”将发生变更。 参数的类型将从“EntityStatus”更改为“String”。
      • 此变更将于 2024 年 5 月 21 日生效 - 此变更预计将从 Az 版本“12.0.0”开始生效
      • 此更改预计从版本“4.0.0”开始生效

之前

(Status is of type EntityStatus)

之后

(Status is of type String)

New-AzServiceBusTopic

  • 所有参数集都将发生参数中断性变更
    • -Status
      • 参数“Status”将发生变更。 参数的类型将从“EntityStatus”更改为“String”。
      • 此变更将于 2024 年 5 月 21 日生效 - 此变更预计将从 Az 版本“12.0.0”开始生效
      • 此更改预计从版本“4.0.0”开始生效

之前

(Status is of type EntityStatus)

之后

(Status is of type String)

Set-AzServiceBusAuthorizationRule

  • 所有参数集都将发生参数中断性变更
    • -Rights
      • 参数“Rights”将发生变更。
      • 此变更将于 2024 年 5 月 21 日生效 - 此变更预计将从 Az 版本“12.0.0”开始生效
      • 此更改预计从版本“4.0.0”开始生效

之前

Set-AzServiceBusAuthorizationRule -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -Name $env.authRule2 -Rights @("Manage", "Send", "Listen")
 
 (Rights is of type AccessRights[])

之后

Set-AzServiceBusAuthorizationRule -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -Name $env.authRule2 -Rights @("Manage", "Send", "Listen")
 
 (Rights is of type System.String[])

Set-AzServiceBusNamespace

  • 所有参数集都将发生参数中断性变更
    • -IdentityType
      • 参数“IdentityType”将发生变更。
      • 此变更将于 2024 年 5 月 21 日生效 - 此变更预计将从 Az 版本“12.0.0”开始生效
      • 此更改预计从版本“4.0.0”开始生效
    • -PublicNetworkAccess
      • 参数“PublicNetworkAccess”将发生变更。
      • 此变更将于 2024 年 5 月 21 日生效 - 此变更预计将从 Az 版本“12.0.0”开始生效
      • 此更改预计从版本“4.0.0”开始生效
    • -SkuName
      • 参数“SkuName”将发生变更。
      • 此变更将于 2024 年 5 月 21 日生效 - 此变更预计将从 Az 版本“12.0.0”开始生效
      • 此更改预计从版本“4.0.0”开始生效

之前

Set-AzServiceBusNamespace -ResourceGroupName $env.resourceGroup -Name $env.namespaceV4  -IdentityType SystemAssigned -PublicNetworkAccess Disabled

( IdentityType is of type ManagedServiceIdentityType),
(PublicNetworkAccess is of type PublicNetworkAccess),
 (SkuName is of type SkuName) 

之后

Set-AzServiceBusNamespace -ResourceGroupName $env.resourceGroup -Name $env.namespaceV4  -IdentityType SystemAssigned -PublicNetworkAccess Disabled

( IdentityType is of type String),
(PublicNetworkAccess is of type String),
 (SkuName is of type String) 

Set-AzServiceBusNamespaceV2

  • 所有参数集都将发生参数中断性变更
    • -IdentityType
      • 参数“IdentityType”将发生变更。
      • 此变更将于 2024 年 5 月 21 日生效 - 此变更预计将从 Az 版本“12.0.0”开始生效
      • 此更改预计从版本“4.0.0”开始生效
    • -PublicNetworkAccess
      • 参数“PublicNetworkAccess”将发生变更。
      • 此变更将于 2024 年 5 月 21 日生效 - 此变更预计将从 Az 版本“12.0.0”开始生效
      • 此更改预计从版本“4.0.0”开始生效
    • -SkuName
      • 参数“SkuName”将发生变更。
      • 此变更将于 2024 年 5 月 21 日生效 - 此变更预计将从 Az 版本“12.0.0”开始生效
      • 此更改预计从版本“4.0.0”开始生效

之前

Set-AzServiceBusNamespaceV2 -ResourceGroupName $env.resourceGroup -Name $env.namespaceV4  -IdentityType SystemAssigned -PublicNetworkAccess Disabled

( IdentityType is of type ManagedServiceIdentityType),
(PublicNetworkAccess is of type PublicNetworkAccess),
 (SkuName is of type SkuName) 

之后

Set-AzServiceBusNamespaceV2 -ResourceGroupName $env.resourceGroup -Name $env.namespaceV4  -IdentityType SystemAssigned -PublicNetworkAccess Disabled

( IdentityType is of type String),
(PublicNetworkAccess is of type String),
 (SkuName is of type String) 

Set-AzServiceBusNetworkRuleSet

  • 所有参数集都将发生参数中断性变更
    • -DefaultAction
      • 参数“DefaultAction”将发生变更。
      • 此变更将于 2024 年 5 月 21 日生效 - 此变更预计将从 Az 版本“12.0.0”开始生效
      • 此更改预计从版本“4.0.0”开始生效
    • -PublicNetworkAccess
      • 参数“PublicNetworkAccess”将发生变更。
      • 此变更将于 2024 年 5 月 21 日生效 - 此变更预计将从 Az 版本“12.0.0”开始生效
      • 此更改预计从版本“4.0.0”开始生效

之前

Set-AzServiceBusNetworkRuleSet -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -PublicNetworkAccess Disabled -DefaultAction deny

 ( DefaultAction is of type DefaultAction),
 ( PublicNetworkAccess is of type PublicNetworkAccess)

之后

Set-AzServiceBusNetworkRuleSet -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -PublicNetworkAccess Disabled -DefaultAction deny

 ( DefaultAction is of type String),
 ( PublicNetworkAccess is of type String)

Set-AzServiceBusQueue

  • 所有参数集都将发生参数中断性变更
    • -Status
      • 参数“Status”将发生变更。
      • 此变更将于 2024 年 5 月 21 日生效 - 此变更预计将从 Az 版本“12.0.0”开始生效
      • 此更改预计从版本“4.0.0”开始生效

之前

(Status is of type EntityStatus)

之后

(Status is of type String.)

Set-AzServiceBusRule

  • 所有参数集都将发生参数中断性变更
    • -FilterType
      • 参数“FilterType”将发生变更。
      • 此变更将于 2024 年 5 月 21 日生效 - 此变更预计将从 Az 版本“12.0.0”开始生效
      • 此更改预计从版本“4.0.0”开始生效

之前

Set-AzServiceBusRule -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -TopicName topic1 -SubscriptionName subscription1 -Name sqlRule2 -FilterType SqlFilter -SqlExpression x=y

( FilterType is of type FilterType)

之后

Set-AzServiceBusRule -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -TopicName topic1 -SubscriptionName subscription1 -Name sqlRule2 -FilterType SqlFilter -SqlExpression x=y

( FilterType is of type String)

Set-AzServiceBusSubscription

  • 所有参数集都将发生参数中断性变更
    • -Status
      • 参数“Status”将发生变更。
      • 此变更将于 2024 年 5 月 21 日生效 - 此变更预计将从 Az 版本“12.0.0”开始生效
      • 此更改预计从版本“4.0.0”开始生效

之前

(Status is of type EntityStatus)

之后

(Status is of type String)

Set-AzServiceBusTopic

  • 所有参数集都将发生参数中断性变更
    • -Status
      • 参数“Status”将发生变更。
      • 此变更将于 2024 年 5 月 21 日生效 - 此变更预计将从 Az 版本“12.0.0”开始生效
      • 此更改预计从版本“4.0.0”开始生效

之前

(Status is of type EntityStatus)

之后

(Status is of type String)

Az.Sql

New-AzSqlDatabaseFailoverGroup

  • 所有参数集都将发生 Cmdlet 中断性变更
    • FailoverPolicy 的默认值将从 Automatic 更改为 Manual
    • 此更改预计将从 Az.Sql 版本 5.0.0 和 Az 版本 12.0.0 开始生效

之前

New-AzSqlDatabaseFailoverGroup -ServerName example-primary-server -ResourceGroupName example-rg -PartnerServerName example-secondary-server -FailoverGroupName example-fg     (FailoverPolicy defaults to Automatic)

之后

New-AzSqlDatabaseFailoverGroup -ServerName example-primary-server -ResourceGroupName example-rg -PartnerServerName example-secondary-server -FailoverGroupName example-fg     (FailoverPolicy defaults to Manual)

Set-AzSqlDatabaseFailoverGroup

  • 所有参数集都将发生 Cmdlet 中断性变更
    • FailoverPolicy 的默认值将从 Automatic 更改为 Manual
    • 此更改预计将从 Az.Sql 版本 5.0.0 和 Az 版本 12.0.0 开始生效

之前

Get-Help Set-AzSqlDatabaseFailoverGroup -Parameter FailoverPolicy (Output shows default value = Automatic)

之后

Get-Help Set-AzSqlDatabaseFailoverGroup -Parameter FailoverPolicy (Output shows default value = Manual)

Az.Storage

Get-AzStorageQueue

  • 所有参数集都将发生 Cmdlet 中断性变更
    • 已弃用的 v11 SDK 中的子属性 CloudQueue 和 EncodeMessage 将被删除。 使用子属性 QueueClient 替代 CloudQueue。
    • 此更改预计将从 Az.Storage 版本 7.0.0 和 Az 版本 12.0.0 开始生效

之前

PS C:\WINDOWS\system32> $queue = Get-AzStorageQueue -Context $ctx-Name myqueue
PS C:\WINDOWS\system32> $queue | fl

CloudQueue              : Microsoft.Azure.Storage.Queue.CloudQueue
Uri                     : https://mystorageaccount.queue.core.windows.net/myqueue
ApproximateMessageCount : 0
EncodeMessage           : True
QueueClient             : Azure.Storage.Queues.QueueClient
QueueProperties         : Azure.Storage.Queues.Models.QueueProperties
Context                 : Microsoft.WindowsAzure.Commands.Storage.AzureStorageContext
Name                    : myqueue

PS C:\WINDOWS\system32> $queueMessage = [Microsoft.Azure.Storage.Queue.CloudQueueMessage]::new("This is message 1")
PS C:\WINDOWS\system32> $queue.CloudQueue.AddMessageAsync($queueMessage)

之后

PS C:\WINDOWS\system32> $queue = Get-AzStorageQueue -Context $ctx-Name myqueue
PS C:\WINDOWS\system32> $queue | fl

QueueClient             : Azure.Storage.Queues.QueueClient
Uri                     : https://mystorageaccount.queue.core.windows.net/myqueue
ApproximateMessageCount : 0
QueueProperties         : Azure.Storage.Queues.Models.QueueProperties
Context                 : Microsoft.WindowsAzure.Commands.Storage.AzureStorageContext
Name                    : myqueue

PS C:\WINDOWS\system32> $queueMessage = "This is message 1"
PS C:\WINDOWS\system32> $queue.QueueClient.SendMessage($queueMessage)

New-AzStorageQueue

  • 所有参数集都将发生 Cmdlet 中断性变更
    • 已弃用的 v11 SDK 中的子属性 CloudQueue 和 EncodeMessage 将被删除。 使用子属性 QueueClient 替代 CloudQueue。
    • 此更改预计将从 Az.Storage 版本 7.0.0 和 Az 版本 12.0.0 开始生效

之前

PS C:\WINDOWS\system32> $queue = New-AzStorageQueue -Name myqueue -Context $ctx
PS C:\WINDOWS\system32> $queue | fl

CloudQueue              : Microsoft.Azure.Storage.Queue.CloudQueue
Uri                     : https://mystorageaccount.queue.core.windows.net/myqueue
ApproximateMessageCount : 0
EncodeMessage           : True
QueueClient             : Azure.Storage.Queues.QueueClient
QueueProperties         : Azure.Storage.Queues.Models.QueueProperties
Context                 :
Name                    : myqueue

之后

PS C:\WINDOWS\system32> $queue = New-AzStorageQueue -Name myqueue -Context $ctx
PS C:\WINDOWS\system32> $queue | fl


QueueClient             : Azure.Storage.Queues.QueueClient
Uri                     : https://mystorageaccount.queue.core.windows.net/myqueue
ApproximateMessageCount : 0
QueueProperties         : Azure.Storage.Queues.Models.QueueProperties
Context                 : Microsoft.WindowsAzure.Commands.Storage.AzureStorageContext
Name                    : myqueue

New-AzStorageQueueSASToken

  • 所有参数集都将发生参数中断性变更
    • -Protocol
      • 参数协议的类型将从 SharedAccessProtocol 更改为字符串。
      • 此更改预计将从 Az.Storage 版本 7.0.0 和 Az 版本 12.0.0 开始生效

之前

New-AzStorageQueueSASToken -Name testq1 -Permission ruap -Protocol HttpsOnly -Context $ctx
(The parameter Protocol is of type SharedAccessProtocol)

之后

New-AzStorageQueueSASToken -Name testq1 -Permission ruap -Protocol HttpsOnly -Context $ctx
(The parameter Protocol is of type string)

Set-AzStorageAccount

  • 所有参数集都将发生参数中断性变更
    • -UpgradeToStorageV2
      • 将存储帐户从 StorageV1 或 BlobStorage 升级到 StorageV2 时,将添加需要用户确认的提示。 使用 -Force 可以禁止显示该提示。
      • 此更改预计将从 Az.Storage 版本 7.0.0 和 Az 版本 12.0.0 开始生效

之前

No prompt when upgrading to StorageV2:
Set-AzStorageAccount -ResourceGroupName $rgname -Name $stoname -UpgradeToStorageV2

之后

Add -Force to skip the prompt when upgrading to StorageV2 
Set-AzStorageAccount -ResourceGroupName $rgname -Name $stoname -UpgradeToStorageV2 -Force

Set-AzStorageFileContent

  • 所有参数集都将发生参数中断性变更
    • -Path
      • 在使用没有读取权限的 SAS 令牌上传时,目标路径将用作文件路径,而不是先前的目录路径。
      • 此更改预计将从 Az.Storage 版本 7.0.0 和 Az 版本 12.0.0 开始生效

之前

When uploading Azure File using SAS token without Read permission, the Path parameter will be taken as parent directory path, and will take source file name as destination file name.

$ctxsas = New-AzStorageContext -StorageAccountName $accountName  -SasToken $writeOnlySasToken
Set-AzStorageFileContent -ShareName $sharename -Path dir1/dir2 -Source C:\temp\test.txt -Context $ctxsas 

之后

When uploading Azure File using SAS token without Read permission, the Path parameter need be whole path of destination file, include file name

$ctxsas = New-AzStorageContext -StorageAccountName $accountName  -SasToken $writeOnlySasToken
Set-AzStorageFileContent -ShareName $sharename -Path dir1/dir2/test.txt -Source C:\temp\test.txt -Context $ctxsas 

Az.Support

Get-AzSupportProblemClassification

  • 所有参数集都将发生 Cmdlet 中断性变更

    • 将不再支持通过对带有服务对象的 Get-AzSupportProblemClassification 进行管道处理来完成列出操作。 仍将支持通过管道处理来完成获取操作。
    • 此变更预计将从 Az.Support 版本 2.0.0 和 Az 版本 12.0.0 开始生效
  • 所有参数集都将发生参数中断性变更

    • -Id
      • 参数名称“Id”将更改为“Name”。
      • 此变更预计将从 Az.Support 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -ServiceId
      • 参数名称“ServiceId”将更改为“ServiceName”。
      • 此变更预计将从 Az.Support 版本 2.0.0 和 Az 版本 12.0.0 开始生效

之前

Get-AzSupportProblemClassification -ServiceId b452a42b-3779-64de-532c-8a32738357a6 -Id 3400570d-442f-a892-48e2-ff4ad710b38f

之后

Get-AzSupportProblemClassification -ServiceName b452a42b-3779-64de-532c-8a32738357a6 -Name 3400570d-442f-a892-48e2-ff4ad710b38f

Get-AzSupportService

  • 所有参数集都将发生 Cmdlet 中断性变更

    • 输出属性名称“ResourceTypes”将更改为“ResourceType”。
    • 此变更预计将从 Az.Support 版本 2.0.0 和 Az 版本 12.0.0 开始生效
  • 所有参数集都将发生参数中断性变更

    • -Id
      • 参数名称“Id”将更改为“Name”。
      • 此变更预计将从 Az.Support 版本 2.0.0 和 Az 版本 12.0.0 开始生效

之前

"Get-AzSupportService -Id b452a42b-3779-64de-532c-8a32738357a6

Id            : /providers/Microsoft.Support/services/b452a42b-3779-64de-532c-8a32738357a6
Name          : b452a42b-3779-64de-532c-8a32738357a6
Type          : Microsoft.Support/services
DisplayName   : Web App (Linux)
ResourceTypes : {MICROSOFT.WEB/SITES}"

之后

Get-AzSupportService -Name b452a42b-3779-64de-532c-8a32738357a6

DisplayName       : Web App (Linux)
Id                : /providers/Microsoft.Support/services/b452a42b-3779-64de-532c-8a32738357a6
Name              : b452a42b-3779-64de-532c-8a32738357a6
ResourceGroupName :
ResourceType      : {MICROSOFT.WEB/SITES}
Type              : Microsoft.Support/services

Get-AzSupportTicket

  • 所有参数集都将发生 Cmdlet 中断性变更
    • 将移除输入参数“Skip”
    • 此变更预计将从 Az.Support 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • 将移除输入参数“IncludeTotalCount”
    • 此变更预计将从 Az.Support 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • 参数“First”将重命名为“Top”
    • 此变更预计将从 Az.Support 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • 将弃用子输出属性 ContactDetail。 改用属性 ContactDetailAdditionalEmailAddress、ContactDetailCountry、ContactDetailFirstName、ContactDetailLastName、ContactDetailPhoneNumber、ContactDetailPreferredContactMethod、ContactDetailPreferredSupportLanguage、ContactDetailPreferredTimeZone 和 ContactDetailPrimaryEmailAddress
    • 此变更预计将从 Az.Support 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • 将弃用子输出属性 SupportEngineer。 改用属性 SupportEngineerEmailAddress
    • 此变更预计将从 Az.Support 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • 将弃用子输出属性 QuotaTicketDetail。 改用属性 QuotaTicketDetailQuotaChangeRequest、QuotaTicketDetailQuotaChangeRequestSubType、QuotaTicketDetailQuotaChangeRequestVersion
    • 此变更预计将从 Az.Support 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • 输出属性 TechnicalTicketResourceId 将更改为 TechnicalTicketDetailResourceId
    • 此变更预计将从 Az.Support 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • 如果未指定任何参数,Get-AzSupportTicket 将默认返回上周的支持工单
    • 此变更预计将从 Az.Support 版本 2.0.0 和 Az 版本 12.0.0 开始生效

之前

Get-AzSupportTicket  -First 1

Id                               : /subscriptions/86cb77fa-8b17-4eab-9493-b65dace99813/providers/Microsoft
                                   .Support/supportTickets/06bfd9d3-22f96a7f-496854d2-6b34-4c48-a4a9-69a6f
                                   599407a
Name                             : 06bfd9d3-22f96a7f-496854d2-6b34-4c48-a4a9-69a6f599407a
Type                             : Microsoft.Support/supportTickets
Title                            : Quota request for Storage: Azure NetApp Files limits
SupportTicketId                  : 3505060040007427
Description                      : Question: Quota type
                                   Answer: Regional Capacity Quota per Subscription (TiB)

                                   Question: Region requested
                                   Answer: Australia Central 2

                                   Question: Quota State
                                   Answer: Current:25, Default:25

                                   Question: Enter value for new limit
                                   Answer: 22
ProblemClassificationId          : /providers/Microsoft.Support/services/06bfd9d3-516b-d5c6-5802-169c800de
                                   c89/problemClassifications/22f96a7f-37b3-1504-0258-909e9f5ab3ac
ProblemClassificationDisplayName : Storage: Azure NetApp Files limits
Severity                         : Minimal
EnrollmentId                     :
Require24X7Response              : False
ContactDetail                    : Microsoft.Azure.Commands.Support.Models.PSContactProfile
ServiceLevelAgreement            : Microsoft.Azure.Commands.Support.Models.PSServiceLevelAgreement
SupportEngineer                  : Microsoft.Azure.Commands.Support.Models.PSSupportEngineer
SupportPlanType                  : Azure Internal
ProblemStartTime                 :
ServiceId                        : /providers/Microsoft.Support/services/06bfd9d3-516b-d5c6-5802-169c800de
                                   c89
ServiceDisplayName               : Service and subscription limits (quotas)
Status                           : Open
CreatedDate                      : 5/6/2024 3:42:35 PM
ModifiedDate                     : 5/6/2024 3:42:46 PM
TechnicalTicketResourceId        :
QuotaTicketDetail                : Microsoft.Azure.Commands.Support.Models.PSQuotaTicketDetail

之后

Get-AzSupportTicket -Top 1

AdvancedDiagnosticConsent                  : Yes
ContactDetailAdditionalEmailAddress        :
ContactDetailCountry                       : USA
ContactDetailFirstName                     : First
ContactDetailLastName                      : Last
ContactDetailPhoneNumber                   :
ContactDetailPreferredContactMethod        : Email
ContactDetailPreferredSupportLanguage      : en-US
ContactDetailPreferredTimeZone             : Pacific Standard Time
ContactDetailPrimaryEmailAddress           : test@test.com
CreatedDate                                : 5/6/2024 3:42:35 PM
Description                                : Question: Quota type
                                             Answer: Regional Capacity Quota per Subscription (TiB)

                                             Question: Region requested
                                             Answer: Australia Central 2

                                             Question: Quota State
                                             Answer: Current:25, Default:25

                                             Question: Enter value for new limit
                                             Answer: 22
EnrollmentId                               :
FileWorkspaceName                          : 2405060040007416
Id                                         : /subscriptions/86cb77fa-8b17-4eab-9493-b65dace99813/providers/Microsoft.Support/supportTickets/06bfd9
                                             d3-22f96a7f-496854d2-6b34-4c48-a4a9-69a6f599407a
IsTemporaryTicket                          : No
ModifiedDate                               : 5/6/2024 3:42:46 PM
Name                                       : 06bfd9d3-22f96a7f-496854d2-6b34-4c48-a4a9-69a6f599407a
ProblemClassificationDisplayName           : Storage: Azure NetApp Files limits
ProblemClassificationId                    : /providers/Microsoft.Support/services/06bfd9d3-516b-d5c6-5802-169c800dec89/problemClassifications/22f
                                             96a7f-37b3-1504-0258-909e9f5ab3ac
ProblemStartTime                           :
QuotaTicketDetailQuotaChangeRequest        : {{
                                               "region": "australiacentral2",
                                               "payload": "{\"QuotaBucket\":\"tib_per_subscription\",\"tib_per_subscription_text\":\"Current:25,
                                             Default:25\",\"NewLimit\":22}"
                                             }}
QuotaTicketDetailQuotaChangeRequestSubType :
QuotaTicketDetailQuotaChangeRequestVersion : 0.0
Require24X7Response                        : False
ResourceGroupName                          :
SecondaryConsent                           :
ServiceDisplayName                         : Service and subscription limits (quotas)
ServiceId                                  : /providers/Microsoft.Support/services/06bfd9d3-516b-d5c6-5802-169c800dec89
ServiceLevelAgreementExpirationTime        : 5/6/2024 11:42:35 PM
ServiceLevelAgreementSlaMinute             : 480
ServiceLevelAgreementStartTime             : 5/6/2024 3:42:35 PM
Severity                                   : Minimal
Status                                     : Open
SupportEngineerEmailAddress                :
SupportPlanDisplayName                     : support plan
SupportPlanId                              : test
SupportPlanType                            : test
SupportTicketId                            : 3505060040007427
TechnicalTicketDetailResourceId            :
Title                                      : Quota request for Storage: Azure NetApp Files limits
Type                                       : Microsoft.Support/supportTickets

Get-AzSupportTicketCommunication

  • 所有参数集都将发生 Cmdlet 中断性变更
    • cmdlet Get-AzSupportTicketCommunication 将重命名为 Get-AzSupportCommunication
    • 此变更预计将从 Az.Support 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • 将移除输入参数“Skip”
    • 此变更预计将从 Az.Support 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • 将移除输入参数“IncludeTotalCount”
    • 此变更预计将从 Az.Support 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • 参数“First”将重命名为“Top”
    • 此变更预计将从 Az.Support 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • 将不再支持通过对带有支持工单对象的 Get-AzSupportTicketCommunication 进行管道处理来完成列出操作。 仍将支持通过管道处理来完成获取操作。
    • 此变更预计将从 Az.Support 版本 2.0.0 和 Az 版本 12.0.0 开始生效

之前

Get-AzSupportTicketCommunication -SupportTicketName 48cf91d7-69575ec1-65697697-e20c-4bfc-bc46-b69f0ef6d0a0 -First 5

之后

Get-AzSupportCommunication -SupportTicketName 48cf91d7-69575ec1-65697697-e20c-4bfc-bc46-b69f0ef6d0a0 -Top 5

New-AzSupportContactProfileObject

  • 所有参数集都将发生 Cmdlet 中断性变更
    • Cmdlet 将被弃用。 没有替代项。
    • 此变更预计将从 Az.Support 版本 2.0.0 和 Az 版本 12.0.0 开始生效

New-AzSupportTicket

  • 所有参数集都将发生 Cmdlet 中断性变更

    • 将需要新的参数“ServiceId”
    • 此变更预计将从 Az.Support 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • 将需要新的参数“AdvancedDiagnosticConsent”
    • 此变更预计将从 Az.Support 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • 将弃用子输出属性 ContactDetail。 改用属性 ContactDetailAdditionalEmailAddress、ContactDetailCountry、ContactDetailFirstName、ContactDetailLastName、ContactDetailPhoneNumber、ContactDetailPreferredContactMethod、ContactDetailPreferredSupportLanguage、ContactDetailPreferredTimeZone 和 ContactDetailPrimaryEmailAddress
    • 此变更预计将从 Az.Support 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • 将弃用子输出属性 SupportEngineer。 改用属性 SupportEngineerEmailAddress
    • 此变更预计将从 Az.Support 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • 将弃用子输出属性 QuotaTicketDetail。 改用属性 QuotaTicketDetailQuotaChangeRequest、QuotaTicketDetailQuotaChangeRequestSubType、QuotaTicketDetailQuotaChangeRequestVersion
    • 此变更预计将从 Az.Support 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • 输出属性 TechnicalTicketResourceId 将更改为 TechnicalTicketDetailResourceId
    • 此变更预计将从 Az.Support 版本 2.0.0 和 Az 版本 12.0.0 开始生效
  • 所有参数集都将发生参数中断性变更

    • -AdditionalEmailAddress
      • 参数“AdditionalEmailAddress”将重命名为“ContactDetailAdditionalEmailAddress”
      • 此变更预计将从 Az.Support 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -CSPHomeTenantId
      • 将移除参数“CSPHomeTenantId”。
      • 此变更预计将从 Az.Support 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -CustomerContactDetail
      • 将移除 CustomerContactDetail。 改用新参数 ContactDetailCountry、ContactDetailFirstName、ContactDetailLastName、ContactDetailPhoneNumber、ContactDetailPreferredSupportLanguage、ContactDetailPreferredTimeZone、ContactDetailPrimaryEmailAddress、ContactDetailPreferredContactMethod。
      • 此变更预计将从 Az.Support 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -CustomerCountry
      • 参数“CustomerCountry”将重命名为“ContactDetailCountry”
      • 此变更预计将从 Az.Support 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -CustomerFirstName
      • 参数“CustomerFirstName”将重命名为“ContactDetailFirstName”
      • 此变更预计将从 Az.Support 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -CustomerLastName
      • 参数“CustomerLastName”将重命名为“ContactDetailLastName”
      • 此变更预计将从 Az.Support 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -CustomerPhoneNumber
      • 参数“CustomerPhoneNumber”将重命名为“ContactDetailPhoneNumber”
      • 此变更预计将从 Az.Support 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -CustomerPreferredSupportLanguage
      • 参数“CustomerPreferredSupportLanguage”将重命名为“ContactDetailPreferredSupportLanguage”
      • 此变更预计将从 Az.Support 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -CustomerPreferredTimeZone
      • 参数“CustomerPreferredTimeZone”将重命名为“ContactDetailPreferredTimeZone”
      • 此变更预计将从 Az.Support 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -CustomerPrimaryEmailAddress
      • 参数“CustomerPrimaryEmailAddress”将重命名为“ContactDetailPrimaryEmailAddress”
      • 此变更预计将从 Az.Support 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -PreferredContactMethod
      • 参数“PreferredContactMethod”将重命名为“ContactDetailPreferredContactMethod”
      • 此变更预计将从 Az.Support 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -QuotaTicketDetail
      • 将移除参数 QuotaTicketDetail。 改用新的参数 QuotaTicketDetailQuotaChangeRequest、QuotaTicketDetailQuotaChangeRequestSubType、QuotaTicketDetailQuotaChangeRequestVersion。
      • 此变更预计将从 Az.Support 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -TechnicalTicketResourceId
      • 参数“TechnicalTicketResourceId”将重命名为“TechnicalTicketDetailResourceId”
      • 此变更预计将从 Az.Support 版本 2.0.0 和 Az 版本 12.0.0 开始生效

之前

New-AzSupportTicket -Name "test1" -Title "Test" -Description "Test" -Severity "minimal" -ProblemClassificationId "/providers/Microsoft.Support/services/{vm_windows_service_guid}/problemClassifications/{problemClassification_guid}" -TechnicalTicketResourceId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/testRG/providers/Microsoft.Compute/virtualMachines/testVM" -CustomerContactDetail @{FirstName = "first" ; LastName = "last" ; PreferredTimeZone = "pacific standard time" ; PreferredSupportLanguage = "en-us" ; Country = "USA" ; PreferredContactMethod = "Email" ; PrimaryEmailAddress = "test@test.com"}

New-AzSupportTicket -Name "test1" -Title "Test" -Description "Test" -Severity "minimal" -ProblemClassificationId "/providers/Microsoft.Support/services/{quota_service_guid}/problemClassifications/{cores_problemClassification_guid}" -QuotaTicketDetail @{QuotaChangeRequestVersion = "1.0" ; QuotaChangeRequests = (@{Region = "westus"; Payload = "{`"VMFamily`":`"Dv2 Series`",`"NewLimit`":350}"})} -CustomerContactDetail @{FirstName = "first" ; LastName = "last" ; PreferredTimeZone = "pacific standard time" ; PreferredSupportLanguage = "en-us" ; Country = "USA" ; PreferredContactMethod = "Email" ; PrimaryEmailAddress = "test@test.com"}

Id                               : /subscriptions/{subscription}/providers/Microsoft
                                   .Support/supportTickets/test_1
Name                             : test_1
Type                             : Microsoft.Support/supportTickets
Title                            : test
SupportTicketId                  : 3505060040008586
Description                      : test ticket please ignore and close
ProblemClassificationId          : /providers/Microsoft.Support/services/{service_id}/problemClassifications/{problemClassification_guid}
ProblemClassificationDisplayName : Compute-VM (cores-vCPUs) subscription limit increases
Severity                         : Minimal
EnrollmentId                     :
Require24X7Response              : False
ContactDetail                    : Microsoft.Azure.Commands.Support.Models.PSContactProfile
ServiceLevelAgreement            : Microsoft.Azure.Commands.Support.Models.PSServiceLevelAgreement
SupportEngineer                  : Microsoft.Azure.Commands.Support.Models.PSSupportEngineer
SupportPlanType                  : Azure Internal
ProblemStartTime                 :
ServiceId                        : /providers/Microsoft.Support/services/{service_id}
ServiceDisplayName               : Service and subscription limits (quotas)
Status                           : Open
CreatedDate                      : 5/6/2024 4:44:24 PM
ModifiedDate                     : 5/6/2024 4:44:34 PM
TechnicalTicketResourceId        :
QuotaTicketDetail                : Microsoft.Azure.Commands.Support.Models.PSQuotaTicketDetail

之后

New-AzSupportTicket -Name "test1" -AdvancedDiagnosticConsent "Yes" -ContactDetailCountry "USA" -ContactDetailFirstName "first" -ContactDetailLastName "last" -ContactDetailPreferredContactMethod "email" -ContactDetailPreferredSupportLanguage "en-US" -ContactDetailPreferredTimeZone "Pacific Standard Time" -ContactDetailPrimaryEmailAddress "test@test.com" -Description "test ticket" -ProblemClassificationId "/providers/microsoft.support/services/{vm_windows_service_guid}/problemclassifications/{problemClassigication_guid}" -ServiceId "/providers/microsoft.support/services/{vm_windows_service_guid}" -Severity "minimal" -Title "test" -TechnicalTicketDetailResourceId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/testRG/providers/Microsoft.Compute/virtualMachines/testVM"

New-AzSupportTicket -Name "test1" -AdvancedDiagnosticConsent "Yes" -ContactDetailCountry "USA" -ContactDetailFirstName "firstName" -ContactDetailLastName "lastName" -ContactDetailPreferredContactMethod "email" -ContactDetailPreferredSupportLanguage "en-US" -ContactDetailPreferredTimeZone "Pacific Standard Time" -ContactDetailPrimaryEmailAddress "test@test.com" -Description "test ticket please ignore and close" -ProblemClassificationId "/providers/microsoft.support/services/{quota_service_guid}/problemclassifications/{cores_problemClassification_guid}" -ServiceId "/providers/microsoft.support/services/{quota_service_guid}" -Severity "minimal" -Title "test" -QuotaTicketDetailQuotaChangeRequest @(@{ Payload = "{`"VMFamily`":`"DV2 Series`",`"NewLimit`":`"350`",`"DeploymentStack`":`"ARM`",`"Type`":`"Regional`",`"EdgeZone`":`"`"}"; Region = "EASTUS"}) -QuotaTicketDetailQuotaChangeRequestVersion "1.0"

AdvancedDiagnosticConsent                  : Yes
ContactDetailAdditionalEmailAddress        :
ContactDetailCountry                       : USA
ContactDetailFirstName                     : firstName
ContactDetailLastName                      : lastName
ContactDetailPhoneNumber                   :
ContactDetailPreferredContactMethod        : Email
ContactDetailPreferredSupportLanguage      : en-US
ContactDetailPreferredTimeZone             : Pacific Standard Time
ContactDetailPrimaryEmailAddress           : test@test.com
CreatedDate                                : 5/6/2024 4:44:24 PM
Description                                : test ticket please ignore and close
EnrollmentId                               :
FileWorkspaceName                          : 3505060040008586
Id                                         : /subscriptions/{subscription_id}/providers/Microsoft.Support/supportTickets/test1
IsTemporaryTicket                          : No
ModifiedDate                               : 5/6/2024 4:44:36 PM
Name                                       : test_grace_2
ProblemClassificationDisplayName           : Compute-VM (cores-vCPUs) subscription limit increases
ProblemClassificationId                    : /providers/Microsoft.Support/services/{service_id}/problemClassifications/{problemClassification_guid}
ProblemScopingQuestion                     :
ProblemStartTime                           :
QuotaTicketDetailQuotaChangeRequest        : {{
                                               "region": "EASTUS",
                                               "payload": "{\"VMFamily\":\"DV2
                                             Series\",\"NewLimit\":\"350\",\"DeploymentStack\":\"ARM\",\"Type\":\"Regional\",\"EdgeZone\":\"\"}"
                                             }}
QuotaTicketDetailQuotaChangeRequestSubType :
QuotaTicketDetailQuotaChangeRequestVersion : 1.0
Require24X7Response                        : False
ResourceGroupName                          :
SecondaryConsent                           :
ServiceDisplayName                         : Service and subscription limits (quotas)
ServiceId                                  : /providers/Microsoft.Support/services/{service_id}
ServiceLevelAgreementExpirationTime        : 5/7/2024 12:44:24 AM
ServiceLevelAgreementSlaMinute             : 480
ServiceLevelAgreementStartTime             : 5/6/2024 4:44:24 PM
Severity                                   : Minimal
Status                                     : Open
SupportEngineerEmailAddress                :
SupportPlanDisplayName                     : suppport plan
SupportPlanId                              : test
SupportPlanType                            : support plan
SupportTicketId                            : 3505060040008586
TechnicalTicketDetailResourceId            :
Title                                      : test
Type                                       : Microsoft.Support/supportTickets

New-AzSupportTicketCommunication

  • 所有参数集都将发生 Cmdlet 中断性变更
    • cmdlet New-AzSupportTicketCommunication 将重命名为 New-AzSupportCommunication
    • 此变更预计将从 Az.Support 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • 将不再支持对带有支持工单对象的 New-AzSupportTicketCommunication 进行管道处理。
    • 此变更预计将从 Az.Support 版本 2.0.0 和 Az 版本 12.0.0 开始生效

之前

New-AzSupportTicketCommunication -SupportTicketName 48cf91d7-69575ec1-65697697-e20c-4bfc-bc46-b69f0ef6d0a0 -Name "testcomm1" -Subject "test" -Body "test"

之后

New-AzSupportCommunication -SupportTicketName 48cf91d7-69575ec1-65697697-e20c-4bfc-bc46-b69f0ef6d0a0 -Name "testcomm1" -Subject "test" -Body "test"

Update-AzSupportTicket

  • 所有参数集都将发生 Cmdlet 中断性变更

    • 将弃用子输出属性 ContactDetail。 改用属性 ContactDetailAdditionalEmailAddress、ContactDetailCountry、ContactDetailFirstName、ContactDetailLastName、ContactDetailPhoneNumber、ContactDetailPreferredContactMethod、ContactDetailPreferredSupportLanguage、ContactDetailPreferredTimeZone 和 ContactDetailPrimaryEmailAddress
    • 此变更预计将从 Az.Support 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • 将弃用子输出属性 SupportEngineer。 改用属性 SupportEngineerEmailAddress
    • 此变更预计将从 Az.Support 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • 将弃用子输出属性 QuotaTicketDetail。 改用属性 QuotaTicketDetailQuotaChangeRequest、QuotaTicketDetailQuotaChangeRequestSubType、QuotaTicketDetailQuotaChangeRequestVersion
    • 此变更预计将从 Az.Support 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • 输出属性 TechnicalTicketResourceId 将更改为 TechnicalTicketDetailResourceId
    • 此变更预计将从 Az.Support 版本 2.0.0 和 Az 版本 12.0.0 开始生效
  • 所有参数集都将发生参数中断性变更

    • -AdditionalEmailAddress
      • 参数“AdditionalEmailAddress”将重命名为“ContactDetailAdditionalEmailAddress”
      • 此变更预计将从 Az.Support 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -CustomerContactDetail
      • 将移除 CustomerContactDetail。 改用新参数 ContactDetailCountry、ContactDetailFirstName、ContactDetailLastName、ContactDetailPhoneNumber、ContactDetailPreferredSupportLanguage、ContactDetailPreferredTimeZone、ContactDetailPrimaryEmailAddress、ContactDetailPreferredContactMethod。
      • 此变更预计将从 Az.Support 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -CustomerCountry
      • 参数“CustomerCountry”将重命名为“ContactDetailCountry”
      • 此变更预计将从 Az.Support 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -CustomerFirstName
      • 参数“CustomerFirstName”将重命名为“ContactDetailFirstName”
      • 此变更预计将从 Az.Support 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -CustomerLastName
      • 参数“CustomerLastName”将重命名为“ContactDetailLastName”
      • 此变更预计将从 Az.Support 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -CustomerPhoneNumber
      • 参数“CustomerPhoneNumber”将重命名为“ContactDetailPhoneNumber”
      • 此变更预计将从 Az.Support 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -CustomerPreferredSupportLanguage
      • 参数“CustomerPreferredSupportLanguage”将重命名为“ContactDetailPreferredSupportLanguage”
      • 此变更预计将从 Az.Support 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -CustomerPreferredTimeZone
      • 参数“CustomerPreferredTimeZone”将重命名为“ContactDetailPreferredTimeZone”
      • 此变更预计将从 Az.Support 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -CustomerPrimaryEmailAddress
      • 参数“CustomerPrimaryEmailAddress”将重命名为“ContactDetailPrimaryEmailAddress”
      • 此变更预计将从 Az.Support 版本 2.0.0 和 Az 版本 12.0.0 开始生效
    • -PreferredContactMethod
      • 参数“PreferredContactMethod”将重命名为“ContactDetailPreferredContactMethod”
      • 此变更预计将从 Az.Support 版本 2.0.0 和 Az 版本 12.0.0 开始生效

之前

$contactDetail = New-Object Microsoft.Azure.Commands.Support.Models.PSContactProfile
$contactDetail.FirstName = "first name updated"
$contactDetail.LastName = "last name updated"
Update-AzSupportTicket -Name "test1" -CustomerContactDetail $contactDetail -CustomerCountry "USA" 

Id                               : /subscriptions/{subscription}/providers/Microsoft
                                   .Support/supportTickets/test_1
Name                             : test_1
Type                             : Microsoft.Support/supportTickets
Title                            : test
SupportTicketId                  : 3505060040008586
Description                      : test ticket please ignore and close
ProblemClassificationId          : /providers/Microsoft.Support/services/{service_id}/problemClassifications/{problemClassification_guid}
ProblemClassificationDisplayName : Compute-VM (cores-vCPUs) subscription limit increases
Severity                         : Minimal
EnrollmentId                     :
Require24X7Response              : False
ContactDetail                    : Microsoft.Azure.Commands.Support.Models.PSContactProfile
ServiceLevelAgreement            : Microsoft.Azure.Commands.Support.Models.PSServiceLevelAgreement
SupportEngineer                  : Microsoft.Azure.Commands.Support.Models.PSSupportEngineer
SupportPlanType                  : Azure Internal
ProblemStartTime                 :
ServiceId                        : /providers/Microsoft.Support/services/{service_id}
ServiceDisplayName               : Service and subscription limits (quotas)
Status                           : Open
CreatedDate                      : 5/6/2024 4:44:24 PM
ModifiedDate                     : 5/6/2024 4:44:34 PM
TechnicalTicketResourceId        :
QuotaTicketDetail                : Microsoft.Azure.Commands.Support.Models.PSQuotaTicketDetail

之后

Update-SupportTicket -Name "test1" -ContactDetailFirstName "first name updated" -ContactDetailLastName "last name updated" -ContactDetailCountry "USA"

AdvancedDiagnosticConsent                  : Yes
ContactDetailAdditionalEmailAddress        :
ContactDetailCountry                       : USA
ContactDetailFirstName                     : first name updated
ContactDetailLastName                      : last name updated
ContactDetailPhoneNumber                   :
ContactDetailPreferredContactMethod        : Email
ContactDetailPreferredSupportLanguage      : en-US
ContactDetailPreferredTimeZone             : Pacific Standard Time
ContactDetailPrimaryEmailAddress           : test@test.com
CreatedDate                                : 5/6/2024 4:44:24 PM
Description                                : test ticket please ignore and close
EnrollmentId                               :
FileWorkspaceName                          : 3505060040008586
Id                                         : /subscriptions/{subscription_id}/providers/Microsoft.Support/supportTickets/test1
IsTemporaryTicket                          : No
ModifiedDate                               : 5/6/2024 4:44:36 PM
Name                                       : test_grace_2
ProblemClassificationDisplayName           : Compute-VM (cores-vCPUs) subscription limit increases
ProblemClassificationId                    : /providers/Microsoft.Support/services/{service_id}/problemClassifications/{problemClassification_guid}
ProblemScopingQuestion                     :
ProblemStartTime                           :
QuotaTicketDetailQuotaChangeRequest        : {{
                                               "region": "EASTUS",
                                               "payload": "{\"VMFamily\":\"DV2
                                             Series\",\"NewLimit\":\"350\",\"DeploymentStack\":\"ARM\",\"Type\":\"Regional\",\"EdgeZone\":\"\"}"
                                             }}
QuotaTicketDetailQuotaChangeRequestSubType :
QuotaTicketDetailQuotaChangeRequestVersion : 1.0
Require24X7Response                        : False
ResourceGroupName                          :
SecondaryConsent                           :
ServiceDisplayName                         : Service and subscription limits (quotas)
ServiceId                                  : /providers/Microsoft.Support/services/{service_id}
ServiceLevelAgreementExpirationTime        : 5/7/2024 12:44:24 AM
ServiceLevelAgreementSlaMinute             : 480
ServiceLevelAgreementStartTime             : 5/6/2024 4:44:24 PM
Severity                                   : Minimal
Status                                     : Open
SupportEngineerEmailAddress                :
SupportPlanDisplayName                     : suppport plan
SupportPlanId                              : test
SupportPlanType                            : support plan
SupportTicketId                            : 3505060040008586
TechnicalTicketDetailResourceId            :
Title                                      : test
Type                                       : Microsoft.Support/supportTickets