Przewodnik migracji dla modułu Az 8.0.0
Az.Aks
Get-AzAks
Alias Get-AzAks
jest usuwany. Zamiast tego użyj polecenia Get-AzAksCluster
.
Przed
Get-AzAks -ResourceGroupName $resourceGroupName -Name $name
Po
Get-AzAksCluster -ResourceGroupName $resourceGroupName -Name $name
New-AzAks
Alias New-AzAks
jest usuwany. Zamiast tego użyj polecenia New-AzAksCluster
.
Przed
New-AzAks -ResourceGroupName $resourceGroupName -Name $name -Location $location
Po
New-AzAksCluster -ResourceGroupName $resourceGroupName -Name $name -Location $location
Set-AzAks
Alias Set-AzAks
jest usuwany. Zamiast tego użyj polecenia Set-AzAksCluster
.
Przed
Set-AzAks -ResourceGroupName $resourceGroupName -Name $name
Po
Set-AzAksCluster -ResourceGroupName $resourceGroupName -Name $name
Remove-AzAks
Alias Remove-AzAks
jest usuwany. Zamiast tego użyj polecenia Remove-AzAksCluster
.
Przed
Remove-AzAks -ResourceGroupName $resourceGroupName -Name $name
Po
Remove-AzAksCluster -ResourceGroupName $resourceGroupName -Name $name
Az.Cdn
New-AzCdnProfile
Zmieniono typ parametru Sku
na SkuName
Zmieniono typ parametru ProfileName
na Name
Przed
$profileSku = "Standard_Microsoft";
$cdnProfileName = "profileNameXXXX";
$resourceGroupName = "myresourcegroup"
New-AzCdnProfile -Sku $profileSku -ProfileName $cdnProfileName -ResourceGroupName $resourceGroupName -Location Global
Po
$profileSku = "Standard_Microsoft";
$cdnProfileName = "profileNameXXXX";
$resourceGroupName = "myresourcegroup"
New-AzCdnProfile -SkuName $profileSku -Name $cdnProfileName -ResourceGroupName $resourceGroupName -Location Global
New-AzCdnEndpoint
Zmieniono parametr EndpointName
na Zmieniono parametr GeoFilter
GeoFilters
na Zmieniono parametr na Zmieniono parametr DefaultOriginGroup
DefaultOriginGroupId
na Scal parametry OriginHostName
,OriginId
,,OriginName
,HttpPort
PrivateLinkLocation
Priority
PrivateLinkApprovalMessage
Weight
HttpsPort
PrivateLinkResourceId
do parametru Origin
Scal parametry OriginGroupName
,OriginGroupProbeIntervalInSeconds
OriginGroupProbePath
,,,OriginGroupProbeProtocol
,OriginGroupProbeRequestType
na parametr Podział DeliveryPolicy
parametrów OriginGroup
na parametry DeliveryPolicyDescription
,DeliveryPolicyRule
Dodaj parametry SubscriptionId
,UrlSigningKey
,WebApplicationFirewallPolicyLinkId
Usuń parametr Name
CdnProfile
Przed
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
Po
$origin = @{
Name = "origin1"
HostName = "host1.hello.com"
};
$location = "westus"
$endpoint = New-AzCdnEndpoint -Name $endpointName -ResourceGroupName $ResourceGroupName -ProfileName $cdnProfileName -Location $location -Origin $origin
New-AzCdnDeliveryPolicy
Usuń polecenie New-AzCdnDeliveryPolicy
. Użyj New-AzCdnDeliveryRuleObject
obiektu create rule i użyj go New-AzCdnEndpoint
bezpośrednio
New-AzCdnDeliveryRule
Zmieniono nazwę polecenia na New-AzCdnDeliveryRuleObject
Przed
New-AzCdnDeliveryRule -Name "rule1" -Order 1 -Condition $cond1 -Action $action1
Po
$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
Zmieniono typ parametru CustomDomainName
na Name
Dodaj parametr Delete parametru SubscriptionId
CdnEndpoint
Przed
New-AzCdnCustomDomain -ResourceGroupName $resourceGroupName -ProfileName $cdnProfileName -EndpointName $endpointName -CustomDomainName $customDomainName -HostName $customDomainHostName
Po
New-AzCdnCustomDomain -ResourceGroupName $resourceGroupName -ProfileName $cdnProfileName -EndpointName $endpointName -Name $customDomainName -HostName $customDomainHostName -SubscriptionId $subId
Set-AzCdnProfile
Zastąpione poleceniem Update-AzCdnProfile
Przed
$profileObject = Get-AzCdnProfile -ResourceGroupName myresourcegroup -ProfileName mycdnprofile
$profileObject.Tags = @{"key"="value"}
Set-AzCdnProfile -CdnProfile $profileObject
Po
$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
Zastąpione poleceniem Update-AzCdnEndpoint
DeliveryPolicyDescription
i DeliveryPolicyRule
powinny być dostarczane razem, gdy chcesz zaktualizować jeden z nich.
Przed
$endpointObject = Get-AzCdnEndpoint -ResourceGroupName myresourcegroup -ProfileName mycdnprofile -EndpointName myendpoint
$endpointObject.IsHttpAllowed = $false
Set-AzCdnEndpoint -CdnEndpoint $endpointObject
Po
$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
Zastąpione poleceniem Update-AzCdnOriginGroup
Przed
Set-AzCdnOriginGroup -ResourceGroupName $resourceGroupName -ProfileName $profileName -EndpointName $endpointName -OriginGroupName $originGroupName -OriginId $originIds -ProbeIntervalInSeconds $probeInterval
Po
Update-AzCdnOriginGroup -EndpointName $endpointName -Name $originGroup.Name -ProfileName $cdnProfileName -ResourceGroupName $ResourceGroupName `
-HealthProbeSetting $healthProbeParametersObject2 -Origin @(@{ Id = $originId })
Set-AzCdnOrigin
Zastąpione poleceniem Update-AzCdnOrigin
Przed
Set-AzCdnOrigin -ResourceGroupName $resourceGroupName -ProfileName $cdnProfileName -EndpointName $endpointName `
-OriginName $originName -HostName "mystorage2.blob.core.windows.net"
Po
Update-AzCdnOrigin -ResourceGroupName $resourceGroupName -ProfileName $cdnProfileName -EndpointName $endpointName `
-Name $originName -HostName "mystorage2.blob.core.windows.net" -HttpPort 456 -HttpsPort 789
Unpublish-AzCdnEndpointContent
Zastąpione poleceniem Clear-AzCdnEndpointContent
Przed
Unpublish-AzCdnEndpointContent -ResourceGroupName $resourceGroupName -ProfileName $cdnProfileName -EndpointName $endpointName `
-PurgeContent $PurgeContent
Po
Clear-AzCdnEndpointContent -ResourceGroupName $resourceGroupName -ProfileName $cdnProfileName -EndpointName $endpointName `
-ContentPath $PurgeContent
Publish-AzCdnEndpointContent
Zastąpione poleceniem Import-AzCdnEndpointContent
Przed
Publish-AzCdnEndpointContent -ResourceGroupName $resourceGroupName -ProfileName $cdnProfileName -EndpointName $endpointName `
-LoadContent $LoadContent
Po
Import-AzCdnEndpointContent -ResourceGroupName $resourceGroupName -ProfileName $cdnProfileName -EndpointName $endpointName `
-ContentPath $LoadContent
Az.EventHub
New-AzEventHubNamespace
Parametr Identity
jest usuwany.
Przed
New-AzEventHubNamespace -ResourceGroupName myresourcegroup -Name MyNamespaceName -Location northeurope -SkuName Premium -IdentityType SystemAssigned -Identity
Po
New-AzEventHubNamespace -ResourceGroupName myresourcegroup -Name MyNamespaceName -Location northeurope -SkuName Premium -IdentityType SystemAssigned
Set-AzEventHubNamespace
Parametr Identity
jest usuwany.
Przed
Set-AzEventHubNamespace -ResourceGroupName myresourcegroup -Name MyNamespaceName -EncryptionConfig $ec1,$ec2 -Identity
Po
Set-AzEventHubNamespace -ResourceGroupName myresourcegroup -Name MyNamespaceName -EncryptionConfig $ec1,$ec2
Az.HealthcareApis
Set-AzHealthcareApisService
Łączenie polecenia New-AzHealthcareApisService i Set-AzHealthcareApisService z usługą New-AzHealthcareApisService
Przed
Set-AzHealthcareApisService -Name MyService -ResourceGroupName MyResourceGroup -CosmosOfferThroughput 500
Po
New-AzHealthcareApisService -Name MyService -ResourceGroupName MyResourceGroup -Location MyLocation -Kind fhir-R4 -CosmosOfferThroughput 500
Get-AzHealthcareApisService
-ResourceId
jest usuwany
Przed
Get-AzHealthcareApisService -ResourceId $ResourceId
Po
Get-AzHealthcareApisService -ResourceGroupName $ResourceGroup -Name $Name
Remove-AzHealthcareApisService
-ResourceId
jest usuwany
Przed
Remove-AzHealthcareApisService -ResourceId $ResourceId
Po
Remove-AzHealthcareApisService -ResourceGroupName $ResourceGroup -Name $Name
New-AzHealthcareApisService
-ManagedIdentity
nazwa elementu jest usuwana -IdentityType
-FhirVersion
i można wybrać żądaną zawartość za pomocą parametru -Kind
-DisableCorsCredential
i -AllowCorsCredential
: teraz jednolicie o nazwie -AllowCorsCredential
, na przykład: -AllowCorsCredential:$false lub -AllowCorsCredential:$true -DisableSmartProxy
i -EnableSmartProxy
: teraz jednolicie nazwane jako -EnableSmartProxy
, przykład: -EnableSmartProxy:$false lub -EnableSmartProxy:$true
Przed
New-AzHealthcareApisService -Name MyService -ResourceGroupName MyResourceGroup -Location MyLocation -FhirVersion fhir-R4 -CosmosOfferThroughput 500 -ManagedIdentity $IdentityType -DisableCorsCredential -DisableSmartProxy
Po
New-AzHealthcareApisService -Name MyService -ResourceGroupName MyResourceGroup -Location MyLocation -Kind fhir-R4 -CosmosOfferThroughput 500 -IdentityType $IdentityType -AllowCorsCredential:$false -EnableSmartProxy:$false