Guía de migración para Az 8.0.0
Az.Aks
Get-AzAks
El alias Get-AzAks
es eliminado. Use Get-AzAksCluster
en su lugar.
Antes
Get-AzAks -ResourceGroupName $resourceGroupName -Name $name
Después
Get-AzAksCluster -ResourceGroupName $resourceGroupName -Name $name
New-AzAks
Se elimina el alias New-AzAks
. Use New-AzAksCluster
en su lugar.
Antes
New-AzAks -ResourceGroupName $resourceGroupName -Name $name -Location $location
Después
New-AzAksCluster -ResourceGroupName $resourceGroupName -Name $name -Location $location
Set-AzAks
El alias Set-AzAks
se elimina. Use Set-AzAksCluster
en su lugar.
Antes
Set-AzAks -ResourceGroupName $resourceGroupName -Name $name
Después
Set-AzAksCluster -ResourceGroupName $resourceGroupName -Name $name
Remove-AzAks
Se elimina el alias Remove-AzAks
. Use Remove-AzAksCluster
en su lugar.
Antes
Remove-AzAks -ResourceGroupName $resourceGroupName -Name $name
Después
Remove-AzAksCluster -ResourceGroupName $resourceGroupName -Name $name
Az.Cdn
New-AzCdnProfile
Se cambió el tipo de parámetro Sku
a SkuName
Se cambió el tipo de parámetro ProfileName
a Name
Antes
$profileSku = "Standard_Microsoft";
$cdnProfileName = "profileNameXXXX";
$resourceGroupName = "myresourcegroup"
New-AzCdnProfile -Sku $profileSku -ProfileName $cdnProfileName -ResourceGroupName $resourceGroupName -Location Global
Después
$profileSku = "Standard_Microsoft";
$cdnProfileName = "profileNameXXXX";
$resourceGroupName = "myresourcegroup"
New-AzCdnProfile -SkuName $profileSku -Name $cdnProfileName -ResourceGroupName $resourceGroupName -Location Global
New-AzCdnEndpoint
Se cambió el parámetro EndpointName
a Name
. Se cambió el parámetro GeoFilters
a GeoFilter
. Se cambió el parámetro DefaultOriginGroup
a DefaultOriginGroupId
. Fusionar parámetros OriginHostName
,OriginId
,OriginName
,Priority
,PrivateLinkApprovalMessage
,PrivateLinkLocation
,PrivateLinkResourceId
,Weight
,HttpPort
,HttpsPort
en el parámetro Origin
. Fusionar parámetros OriginGroupName
,OriginGroupProbeIntervalInSeconds
,OriginGroupProbePath
,OriginGroupProbeProtocol
,OriginGroupProbeRequestType
en el parámetro OriginGroup
. Dividir el parámetro DeliveryPolicy
en los parámetros DeliveryPolicyDescription
,DeliveryPolicyRule
. Agregar parámetros SubscriptionId
,UrlSigningKey
,WebApplicationFirewallPolicyLinkId
. Eliminar el 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
Despué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
Elimine el comando New-AzCdnDeliveryPolicy
. Utilizar New-AzCdnDeliveryRuleObject
para crear un objeto de regla y luego utilizarlo directamente en New-AzCdnEndpoint
.
New-AzCdnDeliveryRule
Se ha cambiado el nombre del comando a New-AzCdnDeliveryRuleObject
Antes
New-AzCdnDeliveryRule -Name "rule1" -Order 1 -Condition $cond1 -Action $action1
Despué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
Se ha cambiado el tipo de parámetro CustomDomainName
a Name
Agregar parámetro SubscriptionId
Eliminar parámetro CdnEndpoint
Antes
New-AzCdnCustomDomain -ResourceGroupName $resourceGroupName -ProfileName $cdnProfileName -EndpointName $endpointName -CustomDomainName $customDomainName -HostName $customDomainHostName
Después
New-AzCdnCustomDomain -ResourceGroupName $resourceGroupName -ProfileName $cdnProfileName -EndpointName $endpointName -Name $customDomainName -HostName $customDomainHostName -SubscriptionId $subId
Set-AzCdnProfile
Reemplazado por el comando Update-AzCdnProfile
Antes
$profileObject = Get-AzCdnProfile -ResourceGroupName myresourcegroup -ProfileName mycdnprofile
$profileObject.Tags = @{"key"="value"}
Set-AzCdnProfile -CdnProfile $profileObject
Despué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
Se ha reemplazado por el comando Update-AzCdnEndpoint
DeliveryPolicyDescription
y DeliveryPolicyRule
se deben proporcionar juntos cuando se desee actualizar uno de ellos.
Antes
$endpointObject = Get-AzCdnEndpoint -ResourceGroupName myresourcegroup -ProfileName mycdnprofile -EndpointName myendpoint
$endpointObject.IsHttpAllowed = $false
Set-AzCdnEndpoint -CdnEndpoint $endpointObject
Despué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
Reemplazado por el comando Update-AzCdnOriginGroup
Antes
Set-AzCdnOriginGroup -ResourceGroupName $resourceGroupName -ProfileName $profileName -EndpointName $endpointName -OriginGroupName $originGroupName -OriginId $originIds -ProbeIntervalInSeconds $probeInterval
Después
Update-AzCdnOriginGroup -EndpointName $endpointName -Name $originGroup.Name -ProfileName $cdnProfileName -ResourceGroupName $ResourceGroupName `
-HealthProbeSetting $healthProbeParametersObject2 -Origin @(@{ Id = $originId })
Set-AzCdnOrigin
Reemplazado por el comando Update-AzCdnOrigin
Antes
Set-AzCdnOrigin -ResourceGroupName $resourceGroupName -ProfileName $cdnProfileName -EndpointName $endpointName `
-OriginName $originName -HostName "mystorage2.blob.core.windows.net"
Después
Update-AzCdnOrigin -ResourceGroupName $resourceGroupName -ProfileName $cdnProfileName -EndpointName $endpointName `
-Name $originName -HostName "mystorage2.blob.core.windows.net" -HttpPort 456 -HttpsPort 789
Unpublish-AzCdnEndpointContent
Reemplazado por el comando Clear-AzCdnEndpointContent
Antes
Unpublish-AzCdnEndpointContent -ResourceGroupName $resourceGroupName -ProfileName $cdnProfileName -EndpointName $endpointName `
-PurgeContent $PurgeContent
Después
Clear-AzCdnEndpointContent -ResourceGroupName $resourceGroupName -ProfileName $cdnProfileName -EndpointName $endpointName `
-ContentPath $PurgeContent
Publish-AzCdnEndpointContent
Reemplazado por comando Import-AzCdnEndpointContent
Antes
Publish-AzCdnEndpointContent -ResourceGroupName $resourceGroupName -ProfileName $cdnProfileName -EndpointName $endpointName `
-LoadContent $LoadContent
Después
Import-AzCdnEndpointContent -ResourceGroupName $resourceGroupName -ProfileName $cdnProfileName -EndpointName $endpointName `
-ContentPath $LoadContent
Az.EventHub
New-AzEventHubNamespace
Se elimina el parámetro Identity
.
Antes
New-AzEventHubNamespace -ResourceGroupName myresourcegroup -Name MyNamespaceName -Location northeurope -SkuName Premium -IdentityType SystemAssigned -Identity
Después
New-AzEventHubNamespace -ResourceGroupName myresourcegroup -Name MyNamespaceName -Location northeurope -SkuName Premium -IdentityType SystemAssigned
Set-AzEventHubNamespace
Se elimina el parámetro Identity
.
Antes
Set-AzEventHubNamespace -ResourceGroupName myresourcegroup -Name MyNamespaceName -EncryptionConfig $ec1,$ec2 -Identity
Después
Set-AzEventHubNamespace -ResourceGroupName myresourcegroup -Name MyNamespaceName -EncryptionConfig $ec1,$ec2
Az.HealthcareApis
Set-AzHealthcareApisService
Combinar New-AzHealthcareApisService y Set-AzHealthcareApisService en New-AzHealthcareApisService
Antes
Set-AzHealthcareApisService -Name MyService -ResourceGroupName MyResourceGroup -CosmosOfferThroughput 500
Después
New-AzHealthcareApisService -Name MyService -ResourceGroupName MyResourceGroup -Location MyLocation -Kind fhir-R4 -CosmosOfferThroughput 500
Get-AzHealthcareApisService
-ResourceId
se elimina
Antes
Get-AzHealthcareApisService -ResourceId $ResourceId
Después
Get-AzHealthcareApisService -ResourceGroupName $ResourceGroup -Name $Name
Remove-AzHealthcareApisService
-ResourceId
se ha eliminado
Antes
Remove-AzHealthcareApisService -ResourceId $ResourceId
Después
Remove-AzHealthcareApisService -ResourceGroupName $ResourceGroup -Name $Name
New-AzHealthcareApisService
-ManagedIdentity
se renombra a -IdentityType
,-FhirVersion
se elimina y el contenido deseado se puede seleccionar con el parámetro -Kind
.-DisableCorsCredential
y -AllowCorsCredential
ahora se denominan uniformemente como -AllowCorsCredential
, ejemplo: -AllowCorsCredential:$false o -AllowCorsCredential:$true. -DisableSmartProxy
y -EnableSmartProxy
ahora se denominan uniformemente como -EnableSmartProxy
, ejemplo: -EnableSmartProxy:$false o -EnableSmartProxy:$true.
Antes
New-AzHealthcareApisService -Name MyService -ResourceGroupName MyResourceGroup -Location MyLocation -FhirVersion fhir-R4 -CosmosOfferThroughput 500 -ManagedIdentity $IdentityType -DisableCorsCredential -DisableSmartProxy
Después
New-AzHealthcareApisService -Name MyService -ResourceGroupName MyResourceGroup -Location MyLocation -Kind fhir-R4 -CosmosOfferThroughput 500 -IdentityType $IdentityType -AllowCorsCredential:$false -EnableSmartProxy:$false