Az 8.0.0 の移行ガイド
Az.Aks
Get-AzAks
別名 Get-AzAks
は削除されます。 代わりに、Get-AzAksCluster
を使用してください。
変更前
Get-AzAks -ResourceGroupName $resourceGroupName -Name $name
クリック後
Get-AzAksCluster -ResourceGroupName $resourceGroupName -Name $name
New-AzAks
別名 New-AzAks
は削除されます。 代わりに、New-AzAksCluster
を使用してください。
変更前
New-AzAks -ResourceGroupName $resourceGroupName -Name $name -Location $location
クリック後
New-AzAksCluster -ResourceGroupName $resourceGroupName -Name $name -Location $location
Set-AzAks
別名 Set-AzAks
は削除されます。 代わりに、Set-AzAksCluster
を使用してください。
変更前
Set-AzAks -ResourceGroupName $resourceGroupName -Name $name
クリック後
Set-AzAksCluster -ResourceGroupName $resourceGroupName -Name $name
Remove-AzAks
別名 Remove-AzAks
は削除されます。 代わりに、Remove-AzAksCluster
を使用してください。
変更前
Remove-AzAks -ResourceGroupName $resourceGroupName -Name $name
クリック後
Remove-AzAksCluster -ResourceGroupName $resourceGroupName -Name $name
Az.Cdn
New-AzCdnProfile
パラメーター Sku
の型を SkuName
に変更し、ProfileName
パラメーターの型を Name
に変更しました
変更前
$profileSku = "Standard_Microsoft";
$cdnProfileName = "profileNameXXXX";
$resourceGroupName = "myresourcegroup"
New-AzCdnProfile -Sku $profileSku -ProfileName $cdnProfileName -ResourceGroupName $resourceGroupName -Location Global
クリック後
$profileSku = "Standard_Microsoft";
$cdnProfileName = "profileNameXXXX";
$resourceGroupName = "myresourcegroup"
New-AzCdnProfile -SkuName $profileSku -Name $cdnProfileName -ResourceGroupName $resourceGroupName -Location Global
New-AzCdnEndpoint
パラメーター EndpointName
を Name
に変更、パラメーター GeoFilters
を GeoFilter
に変更、パラメーター DefaultOriginGroup
を DefaultOriginGroupId
に変更しました。パラメーター OriginHostName
、OriginId
、OriginName
、Priority
、PrivateLinkApprovalMessage
、PrivateLinkLocation
、PrivateLinkResourceId
、Weight
、HttpPort
、HttpsPort
を Origin
にマージし、パラメーター OriginGroupName
、OriginGroupProbeIntervalInSeconds
、OriginGroupProbePath
、OriginGroupProbeProtocol
、OriginGroupProbeRequestType
をパラメーター OriginGroup
にマージします。パラメーター DeliveryPolicy
をパラメーター DeliveryPolicyDescription
、DeliveryPolicyRule
に分割し、パラメーターSubscriptionId
、UrlSigningKey
、WebApplicationFirewallPolicyLinkId
を追加し、パラメーター CdnProfile
を削除します
変更前
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
クリック後
$origin = @{
Name = "origin1"
HostName = "host1.hello.com"
};
$location = "westus"
$endpoint = New-AzCdnEndpoint -Name $endpointName -ResourceGroupName $ResourceGroupName -ProfileName $cdnProfileName -Location $location -Origin $origin
New-AzCdnDeliveryPolicy
コマンド New-AzCdnDeliveryPolicy
を削除します。 New-AzCdnDeliveryRuleObject
を使用してルール オブジェクトを作成し、New-AzCdnEndpoint
で直接使用します
New-AzCdnDeliveryRule
コマンド名を New-AzCdnDeliveryRuleObject
に変更しました
変更前
New-AzCdnDeliveryRule -Name "rule1" -Order 1 -Condition $cond1 -Action $action1
クリック後
$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
パラメーター CustomDomainName
の型を Name
に変更しました。パラメーター SubscriptionId
を追加し、パラメーター CdnEndpoint
を削除します
変更前
New-AzCdnCustomDomain -ResourceGroupName $resourceGroupName -ProfileName $cdnProfileName -EndpointName $endpointName -CustomDomainName $customDomainName -HostName $customDomainHostName
クリック後
New-AzCdnCustomDomain -ResourceGroupName $resourceGroupName -ProfileName $cdnProfileName -EndpointName $endpointName -Name $customDomainName -HostName $customDomainHostName -SubscriptionId $subId
Set-AzCdnProfile
コマンド Update-AzCdnProfile
に置き換えました
変更前
$profileObject = Get-AzCdnProfile -ResourceGroupName myresourcegroup -ProfileName mycdnprofile
$profileObject.Tags = @{"key"="value"}
Set-AzCdnProfile -CdnProfile $profileObject
クリック後
$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
コマンド Update-AzCdnEndpoint
DeliveryPolicyDescription
に置き換えられ、 DeliveryPolicyRule
そのうちの 1 つを更新する場合は一緒に指定する必要があります。
変更前
$endpointObject = Get-AzCdnEndpoint -ResourceGroupName myresourcegroup -ProfileName mycdnprofile -EndpointName myendpoint
$endpointObject.IsHttpAllowed = $false
Set-AzCdnEndpoint -CdnEndpoint $endpointObject
クリック後
$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
コマンド Update-AzCdnOriginGroup
に置き換えました
変更前
Set-AzCdnOriginGroup -ResourceGroupName $resourceGroupName -ProfileName $profileName -EndpointName $endpointName -OriginGroupName $originGroupName -OriginId $originIds -ProbeIntervalInSeconds $probeInterval
クリック後
Update-AzCdnOriginGroup -EndpointName $endpointName -Name $originGroup.Name -ProfileName $cdnProfileName -ResourceGroupName $ResourceGroupName `
-HealthProbeSetting $healthProbeParametersObject2 -Origin @(@{ Id = $originId })
Set-AzCdnOrigin
コマンド Update-AzCdnOrigin
に置き換えました
変更前
Set-AzCdnOrigin -ResourceGroupName $resourceGroupName -ProfileName $cdnProfileName -EndpointName $endpointName `
-OriginName $originName -HostName "mystorage2.blob.core.windows.net"
クリック後
Update-AzCdnOrigin -ResourceGroupName $resourceGroupName -ProfileName $cdnProfileName -EndpointName $endpointName `
-Name $originName -HostName "mystorage2.blob.core.windows.net" -HttpPort 456 -HttpsPort 789
Unpublish-AzCdnEndpointContent
コマンド Clear-AzCdnEndpointContent
に置き換えました
変更前
Unpublish-AzCdnEndpointContent -ResourceGroupName $resourceGroupName -ProfileName $cdnProfileName -EndpointName $endpointName `
-PurgeContent $PurgeContent
クリック後
Clear-AzCdnEndpointContent -ResourceGroupName $resourceGroupName -ProfileName $cdnProfileName -EndpointName $endpointName `
-ContentPath $PurgeContent
Publish-AzCdnEndpointContent
コマンド Import-AzCdnEndpointContent
に置き換えました
変更前
Publish-AzCdnEndpointContent -ResourceGroupName $resourceGroupName -ProfileName $cdnProfileName -EndpointName $endpointName `
-LoadContent $LoadContent
クリック後
Import-AzCdnEndpointContent -ResourceGroupName $resourceGroupName -ProfileName $cdnProfileName -EndpointName $endpointName `
-ContentPath $LoadContent
Az.EventHub
New-AzEventHubNamespace
Identity
パラメーターが削除されます。
変更前
New-AzEventHubNamespace -ResourceGroupName myresourcegroup -Name MyNamespaceName -Location northeurope -SkuName Premium -IdentityType SystemAssigned -Identity
クリック後
New-AzEventHubNamespace -ResourceGroupName myresourcegroup -Name MyNamespaceName -Location northeurope -SkuName Premium -IdentityType SystemAssigned
Set-AzEventHubNamespace
Identity
パラメーターが削除されます。
変更前
Set-AzEventHubNamespace -ResourceGroupName myresourcegroup -Name MyNamespaceName -EncryptionConfig $ec1,$ec2 -Identity
クリック後
Set-AzEventHubNamespace -ResourceGroupName myresourcegroup -Name MyNamespaceName -EncryptionConfig $ec1,$ec2
Az.HealthcareApis
Set-AzHealthcareApisService
New-AzHealthcareApisService と Set-AzHealthcareApisService を New-AzHealthcareApisService に結合します
変更前
Set-AzHealthcareApisService -Name MyService -ResourceGroupName MyResourceGroup -CosmosOfferThroughput 500
クリック後
New-AzHealthcareApisService -Name MyService -ResourceGroupName MyResourceGroup -Location MyLocation -Kind fhir-R4 -CosmosOfferThroughput 500
Get-AzHealthcareApisService
-ResourceId
が削除されます
変更前
Get-AzHealthcareApisService -ResourceId $ResourceId
クリック後
Get-AzHealthcareApisService -ResourceGroupName $ResourceGroup -Name $Name
Remove-AzHealthcareApisService
-ResourceId
が削除されます
変更前
Remove-AzHealthcareApisService -ResourceId $ResourceId
クリック後
Remove-AzHealthcareApisService -ResourceGroupName $ResourceGroup -Name $Name
New-AzHealthcareApisService
-ManagedIdentity
は -IdentityType
に名前が変更され、-FhirVersion
は削除され、目的のコンテンツはパラメーター -Kind
-DisableCorsCredential
と -AllowCorsCredential
を使用して選択できるようになりました。-AllowCorsCredential
という形式の名前 (例: -AllowCorsCredential:$false、-AllowCorsCredential:$true) が使用されるようになりました。-DisableSmartProxy
と -EnableSmartProxy
: -EnableSmartProxy
という形式の名前 (例: -EnableSmartProxy:$false、-EnableSmartProxy:$true) が使用されるようになりました
変更前
New-AzHealthcareApisService -Name MyService -ResourceGroupName MyResourceGroup -Location MyLocation -FhirVersion fhir-R4 -CosmosOfferThroughput 500 -ManagedIdentity $IdentityType -DisableCorsCredential -DisableSmartProxy
After
New-AzHealthcareApisService -Name MyService -ResourceGroupName MyResourceGroup -Location MyLocation -Kind fhir-R4 -CosmosOfferThroughput 500 -IdentityType $IdentityType -AllowCorsCredential:$false -EnableSmartProxy:$false
Azure PowerShell
フィードバック
https://aka.ms/ContentUserFeedback」を参照してください。
以下は間もなく提供いたします。2024 年を通じて、コンテンツのフィードバック メカニズムとして GitHub の issue を段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、「フィードバックの送信と表示