Guia de migração para Az 8.0.0
Az.Aks
Get-AzAks
Alias Get-AzAks
foi removido. Por favor, use Get-AzAksCluster
em vez disso.
Antes
Get-AzAks -ResourceGroupName $resourceGroupName -Name $name
Após
Get-AzAksCluster -ResourceGroupName $resourceGroupName -Name $name
New-AzAks
Alias New-AzAks
é removido. Por favor, use New-AzAksCluster
em vez disso.
Antes
New-AzAks -ResourceGroupName $resourceGroupName -Name $name -Location $location
Após
New-AzAksCluster -ResourceGroupName $resourceGroupName -Name $name -Location $location
Set-AzAks
Alias Set-AzAks
é removido. Por favor, use Set-AzAksCluster
em vez disso.
Antes
Set-AzAks -ResourceGroupName $resourceGroupName -Name $name
Após
Set-AzAksCluster -ResourceGroupName $resourceGroupName -Name $name
Remove-AzAks
Alias Remove-AzAks
foi removido. Por favor, use Remove-AzAksCluster
em vez disso.
Antes
Remove-AzAks -ResourceGroupName $resourceGroupName -Name $name
Após
Remove-AzAksCluster -ResourceGroupName $resourceGroupName -Name $name
Az.Cdn
New-AzCdnProfile
Alterado o tipo de parâmetro Sku
para SkuName
Alterado 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
Após
$profileSku = "Standard_Microsoft";
$cdnProfileName = "profileNameXXXX";
$resourceGroupName = "myresourcegroup"
New-AzCdnProfile -SkuName $profileSku -Name $cdnProfileName -ResourceGroupName $resourceGroupName -Location Global
New-AzCdnEndpoint
Alterar parâmetro EndpointName
para Name
. Alterar parâmetro GeoFilters
para GeoFilter
. Alterar parâmetro DefaultOriginGroup
para DefaultOriginGroupId
. Mesclar parâmetros OriginHostName
,OriginId
,OriginName
,Priority
,PrivateLinkApprovalMessage
,PrivateLinkLocation
,PrivateLinkResourceId
,Weight
,HttpPort
,HttpsPort
em parâmetro Origin
. Mesclar parâmetros OriginGroupName
,OriginGroupProbeIntervalInSeconds
,OriginGroupProbePath
,OriginGroupProbeProtocol
,OriginGroupProbeRequestType
em parâmetro OriginGroup
. Dividir parâmetro DeliveryPolicy
em parâmetros DeliveryPolicyDescription
,DeliveryPolicyRule
. Adicionar parâmetros SubscriptionId
,UrlSigningKey
,WebApplicationFirewallPolicyLinkId
. Excluir 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
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
Comando Excluir New-AzCdnDeliveryPolicy
. Utilize New-AzCdnDeliveryRuleObject
para criar um objeto de regra e usá-lo diretamente em New-AzCdnEndpoint
.
New-AzCdnDeliveryRule
Nome do comando alterado para New-AzCdnDeliveryRuleObject
Antes
New-AzCdnDeliveryRule -Name "rule1" -Order 1 -Condition $cond1 -Action $action1
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
Alterar o tipo de parâmetro CustomDomainName
para Name
Adicionar parâmetro SubscriptionId
Eliminar parâmetro CdnEndpoint
Antes
New-AzCdnCustomDomain -ResourceGroupName $resourceGroupName -ProfileName $cdnProfileName -EndpointName $endpointName -CustomDomainName $customDomainName -HostName $customDomainHostName
Após
New-AzCdnCustomDomain -ResourceGroupName $resourceGroupName -ProfileName $cdnProfileName -EndpointName $endpointName -Name $customDomainName -HostName $customDomainHostName -SubscriptionId $subId
Set-AzCdnProfile
Substituído por comando Update-AzCdnProfile
Antes
$profileObject = Get-AzCdnProfile -ResourceGroupName myresourcegroup -ProfileName mycdnprofile
$profileObject.Tags = @{"key"="value"}
Set-AzCdnProfile -CdnProfile $profileObject
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ídos por comandos Update-AzCdnEndpoint
DeliveryPolicyDescription
e DeliveryPolicyRule
devem ser fornecidos juntos quando você quiser atualizar um deles.
Antes
$endpointObject = Get-AzCdnEndpoint -ResourceGroupName myresourcegroup -ProfileName mycdnprofile -EndpointName myendpoint
$endpointObject.IsHttpAllowed = $false
Set-AzCdnEndpoint -CdnEndpoint $endpointObject
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 por comando Update-AzCdnOriginGroup
Antes
Set-AzCdnOriginGroup -ResourceGroupName $resourceGroupName -ProfileName $profileName -EndpointName $endpointName -OriginGroupName $originGroupName -OriginId $originIds -ProbeIntervalInSeconds $probeInterval
Após
Update-AzCdnOriginGroup -EndpointName $endpointName -Name $originGroup.Name -ProfileName $cdnProfileName -ResourceGroupName $ResourceGroupName `
-HealthProbeSetting $healthProbeParametersObject2 -Origin @(@{ Id = $originId })
Set-AzCdnOrigin
Substituído por comando Update-AzCdnOrigin
Antes
Set-AzCdnOrigin -ResourceGroupName $resourceGroupName -ProfileName $cdnProfileName -EndpointName $endpointName `
-OriginName $originName -HostName "mystorage2.blob.core.windows.net"
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 por comando Clear-AzCdnEndpointContent
Antes
Unpublish-AzCdnEndpointContent -ResourceGroupName $resourceGroupName -ProfileName $cdnProfileName -EndpointName $endpointName `
-PurgeContent $PurgeContent
Após
Clear-AzCdnEndpointContent -ResourceGroupName $resourceGroupName -ProfileName $cdnProfileName -EndpointName $endpointName `
-ContentPath $PurgeContent
Publish-AzCdnEndpointContent
Substituído por comando Import-AzCdnEndpointContent
Antes
Publish-AzCdnEndpointContent -ResourceGroupName $resourceGroupName -ProfileName $cdnProfileName -EndpointName $endpointName `
-LoadContent $LoadContent
Após
Import-AzCdnEndpointContent -ResourceGroupName $resourceGroupName -ProfileName $cdnProfileName -EndpointName $endpointName `
-ContentPath $LoadContent
Az.EventHub
New-AzEventHubNamespace
O parâmetro Identity
é removido.
Antes
New-AzEventHubNamespace -ResourceGroupName myresourcegroup -Name MyNamespaceName -Location northeurope -SkuName Premium -IdentityType SystemAssigned -Identity
Após
New-AzEventHubNamespace -ResourceGroupName myresourcegroup -Name MyNamespaceName -Location northeurope -SkuName Premium -IdentityType SystemAssigned
Set-AzEventHubNamespace
O parâmetro Identity
é removido.
Antes
Set-AzEventHubNamespace -ResourceGroupName myresourcegroup -Name MyNamespaceName -EncryptionConfig $ec1,$ec2 -Identity
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
Após
New-AzHealthcareApisService -Name MyService -ResourceGroupName MyResourceGroup -Location MyLocation -Kind fhir-R4 -CosmosOfferThroughput 500
Get-AzHealthcareApisService
-ResourceId
é removido
Antes
Get-AzHealthcareApisService -ResourceId $ResourceId
Após
Get-AzHealthcareApisService -ResourceGroupName $ResourceGroup -Name $Name
Remove-AzHealthcareApisService
-ResourceId
é removido
Antes
Remove-AzHealthcareApisService -ResourceId $ResourceId
Após
Remove-AzHealthcareApisService -ResourceGroupName $ResourceGroup -Name $Name
New-AzHealthcareApisService
-ManagedIdentity
é renomeado para -IdentityType
-FhirVersion
é 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
Após
New-AzHealthcareApisService -Name MyService -ResourceGroupName MyResourceGroup -Location MyLocation -Kind fhir-R4 -CosmosOfferThroughput 500 -IdentityType $IdentityType -AllowCorsCredential:$false -EnableSmartProxy:$false
Azure PowerShell