Guia de migração para o Az 8.0.0

Az.Aks

Get-AzAks

O alias Get-AzAks foi removido. Use Get-AzAksCluster em seu lugar.

Antes

Get-AzAks -ResourceGroupName $resourceGroupName -Name $name

After (após)

Get-AzAksCluster -ResourceGroupName $resourceGroupName -Name $name

New-AzAks

O alias New-AzAks foi removido. Use New-AzAksCluster em seu lugar.

Antes

New-AzAks -ResourceGroupName $resourceGroupName -Name $name -Location $location

After (após)

New-AzAksCluster -ResourceGroupName $resourceGroupName -Name $name -Location $location

Set-AzAks

O alias Set-AzAks foi removido. Use Set-AzAksCluster em seu lugar.

Antes

Set-AzAks -ResourceGroupName $resourceGroupName -Name $name

After (após)

Set-AzAksCluster -ResourceGroupName $resourceGroupName -Name $name

Remove-AzAks

O alias Remove-AzAks foi removido. Use Remove-AzAksCluster em seu lugar.

Antes

Remove-AzAks -ResourceGroupName $resourceGroupName -Name $name

After (após)

Remove-AzAksCluster -ResourceGroupName $resourceGroupName -Name $name

Az.Cdn

New-AzCdnProfile

Alterou o tipo de parâmetro Sku para SkuName Alterou o tipo de parâmetro ProfileName para Name

Antes

$profileSku = "Standard_Microsoft";
$cdnProfileName = "profileNameXXXX";
$resourceGroupName = "myresourcegroup"
New-AzCdnProfile -Sku $profileSku -ProfileName $cdnProfileName -ResourceGroupName $resourceGroupName -Location Global

After (após)

$profileSku = "Standard_Microsoft";
$cdnProfileName = "profileNameXXXX";
$resourceGroupName = "myresourcegroup"
New-AzCdnProfile -SkuName $profileSku -Name $cdnProfileName -ResourceGroupName $resourceGroupName -Location Global

New-AzCdnEndpoint

Parâmetro EndpointName alterado para Name Parâmetro GeoFilters alterado para GeoFilter Parâmetro DefaultOriginGroup alterado para DefaultOriginGroupId Mesclar os parâmetros OriginHostName, OriginId, OriginName, Priority, PrivateLinkApprovalMessage, PrivateLinkLocation, PrivateLinkResourceId, Weight, HttpPort, HttpsPort no parâmetro Origin Mesclar os parâmetros OriginGroupName, OriginGroupProbeIntervalInSeconds, OriginGroupProbePath, OriginGroupProbeProtocol, OriginGroupProbeRequestType no parâmetro OriginGroup Dividir o parâmetro DeliveryPolicy nos parâmetros DeliveryPolicyDescription, DeliveryPolicyRule Adicionar os parâmetros SubscriptionId, UrlSigningKey, WebApplicationFirewallPolicyLinkId Excluir o parâmetro CdnProfile

Antes

New-AzCdnEndpoint -ResourceGroupName myresourcegroup -ProfileName mycdnprofile -Location westus -EndpointName myendpoint `
                  -OriginName mystorage -OriginHostName mystorage.blob.core.windows.net `
                  -OriginHostHeader mystorage.blob.core.windows.net -IsHttpAllowed $false

After (após)

$origin = @{
  Name = "origin1"
  HostName = "host1.hello.com"
};
$location = "westus"

$endpoint = New-AzCdnEndpoint -Name $endpointName -ResourceGroupName $ResourceGroupName -ProfileName $cdnProfileName -Location $location -Origin $origin

New-AzCdnDeliveryPolicy

Excluir o comando New-AzCdnDeliveryPolicy. Use objeto New-AzCdnDeliveryRuleObject create rule e use-o diretamente no New-AzCdnEndpoint

New-AzCdnDeliveryRule

O nome do comando foi alterado para New-AzCdnDeliveryRuleObject

Antes

New-AzCdnDeliveryRule -Name "rule1" -Order 1 -Condition $cond1 -Action $action1

After (após)

$cond1 = New-AzCdnDeliveryRuleIsDeviceConditionObject -Name "IsDevice" -ParameterMatchValue "Desktop"
$action1 = New-AzCdnUrlRewriteActionObject -Name "UrlRewrite" -ParameterDestination "/def" -ParameterSourcePattern "/abc" -ParameterPreserveUnmatchedPath $true
$rule1 = New-AzCdnDeliveryRuleObject -Name "Rule1" -Action $action1,$action2 -Condition $cond1 -Order 1

New-AzCdnCustomDomain

Alterou o tipo de parâmetro CustomDomainName para Name Adicionar parâmetro SubscriptionId Excluir parâmetro CdnEndpoint

Antes

New-AzCdnCustomDomain -ResourceGroupName $resourceGroupName -ProfileName $cdnProfileName -EndpointName $endpointName -CustomDomainName $customDomainName -HostName $customDomainHostName

After (após)

New-AzCdnCustomDomain -ResourceGroupName $resourceGroupName -ProfileName $cdnProfileName -EndpointName $endpointName -Name $customDomainName -HostName $customDomainHostName -SubscriptionId $subId

Set-AzCdnProfile

Substituído pelo comando Update-AzCdnProfile

Antes

$profileObject = Get-AzCdnProfile -ResourceGroupName myresourcegroup -ProfileName mycdnprofile
$profileObject.Tags = @{"key"="value"}
Set-AzCdnProfile -CdnProfile $profileObject

After (após)

$profileSku = "Standard_Microsoft";
$cdnProfileName = "profileNameXXXX";
$resourceGroupName = "myresourcegroup"
New-AzCdnProfile -SkuName $profileSku -Name $cdnProfileName -ResourceGroupName $resourceGroupName -Location Global

$tags = @{
  Tag1 = 11
  Tag2  = 22
}
Update-AzCdnProfile -Name $cdnProfileName -ResourceGroupName $resourceGroupName -Tag $tags

Set-AzCdnEndpoint

Substituído pelo comando Update-AzCdnEndpointDeliveryPolicyDescription e DeliveryPolicyRule deverá ser fornecido em conjunto quando você quiser atualizar um deles.

Antes

$endpointObject = Get-AzCdnEndpoint -ResourceGroupName myresourcegroup -ProfileName mycdnprofile -EndpointName myendpoint
$endpointObject.IsHttpAllowed = $false
Set-AzCdnEndpoint -CdnEndpoint $endpointObject

After (após)

$tags = @{
  Tag1 = 11
  Tag2  = 22
}

//Update tags
Update-AzCdnEndpoint -Name $endpointName -ProfileName $cdnProfileName -ResourceGroupName $resourceGroupName -Tag $tags

//Update DeliveryPolicyDescription or DeliveryPolicyRule
Update-AzCdnEndpoint -Name $endpointName -ProfileName $cdnProfileName -ResourceGroupName $resourceGroupName `
   -DeliveryPolicyDescription $descprption -DeliveryPolicyRule $rule

Set-AzCdnOriginGroup

Substituído pelo comando Update-AzCdnOriginGroup

Antes

Set-AzCdnOriginGroup -ResourceGroupName $resourceGroupName -ProfileName $profileName -EndpointName $endpointName -OriginGroupName $originGroupName -OriginId $originIds -ProbeIntervalInSeconds $probeInterval

After (após)

Update-AzCdnOriginGroup -EndpointName $endpointName -Name $originGroup.Name -ProfileName $cdnProfileName -ResourceGroupName $ResourceGroupName `
                -HealthProbeSetting $healthProbeParametersObject2 -Origin @(@{ Id = $originId })

Set-AzCdnOrigin

Substituído pelo comando Update-AzCdnOrigin

Antes

Set-AzCdnOrigin -ResourceGroupName $resourceGroupName -ProfileName $cdnProfileName -EndpointName $endpointName `
    -OriginName $originName -HostName "mystorage2.blob.core.windows.net"

After (após)

Update-AzCdnOrigin -ResourceGroupName $resourceGroupName -ProfileName $cdnProfileName -EndpointName $endpointName `
    -Name $originName  -HostName "mystorage2.blob.core.windows.net" -HttpPort 456 -HttpsPort 789

Unpublish-AzCdnEndpointContent

Substituído pelo comando Clear-AzCdnEndpointContent

Antes

Unpublish-AzCdnEndpointContent -ResourceGroupName $resourceGroupName -ProfileName $cdnProfileName -EndpointName $endpointName `
   -PurgeContent $PurgeContent   

After (após)

Clear-AzCdnEndpointContent -ResourceGroupName $resourceGroupName -ProfileName $cdnProfileName -EndpointName $endpointName `
   -ContentPath $PurgeContent   

Publish-AzCdnEndpointContent

Substituído pelo comando Import-AzCdnEndpointContent

Antes

Publish-AzCdnEndpointContent -ResourceGroupName $resourceGroupName -ProfileName $cdnProfileName -EndpointName $endpointName `
   -LoadContent $LoadContent

After (após)

Import-AzCdnEndpointContent -ResourceGroupName $resourceGroupName -ProfileName $cdnProfileName -EndpointName $endpointName `
   -ContentPath $LoadContent

Az.EventHub

New-AzEventHubNamespace

O parâmetro Identity foi removido.

Antes

New-AzEventHubNamespace -ResourceGroupName myresourcegroup -Name MyNamespaceName -Location northeurope -SkuName Premium -IdentityType SystemAssigned -Identity

After (após)

New-AzEventHubNamespace -ResourceGroupName myresourcegroup -Name MyNamespaceName -Location northeurope -SkuName Premium -IdentityType SystemAssigned

Set-AzEventHubNamespace

O parâmetro Identity foi removido.

Antes

Set-AzEventHubNamespace -ResourceGroupName myresourcegroup -Name MyNamespaceName -EncryptionConfig $ec1,$ec2 -Identity

After (após)

Set-AzEventHubNamespace -ResourceGroupName myresourcegroup -Name MyNamespaceName -EncryptionConfig $ec1,$ec2

Az.HealthcareApis

Set-AzHealthcareApisService

Combine New-AzHealthcareApisService e Set-AzHealthcareApisService em New-AzHealthcareApisService

Antes

Set-AzHealthcareApisService -Name MyService -ResourceGroupName MyResourceGroup -CosmosOfferThroughput 500

After (após)

New-AzHealthcareApisService -Name MyService -ResourceGroupName MyResourceGroup -Location MyLocation -Kind fhir-R4 -CosmosOfferThroughput 500

Get-AzHealthcareApisService

-ResourceId foi removido

Antes

Get-AzHealthcareApisService -ResourceId $ResourceId

After (após)

Get-AzHealthcareApisService -ResourceGroupName $ResourceGroup -Name $Name

Remove-AzHealthcareApisService

-ResourceId foi removido

Antes

Remove-AzHealthcareApisService -ResourceId $ResourceId

After (após)

Remove-AzHealthcareApisService -ResourceGroupName $ResourceGroup -Name $Name

New-AzHealthcareApisService

-ManagedIdentity foi renomeado para -IdentityType-FhirVersion foi removido e o conteúdo desejado pode ser selecionado com o parâmetro -Kind-DisableCorsCredential e -AllowCorsCredential: agora uniformemente nomeado como -AllowCorsCredential, exemplo: -AllowCorsCredential:$false ou -AllowCorsCredential:$true -DisableSmartProxy e -EnableSmartProxy: agora uniformemente nomeado como -EnableSmartProxy, exemplo: -EnableSmartProxy:$false ou -EnableSmartProxy:$true

Antes

New-AzHealthcareApisService -Name MyService -ResourceGroupName MyResourceGroup -Location MyLocation -FhirVersion fhir-R4 -CosmosOfferThroughput 500 -ManagedIdentity $IdentityType -DisableCorsCredential -DisableSmartProxy

After (após)

New-AzHealthcareApisService -Name MyService -ResourceGroupName MyResourceGroup -Location MyLocation -Kind fhir-R4 -CosmosOfferThroughput 500 -IdentityType $IdentityType -AllowCorsCredential:$false -EnableSmartProxy:$false