AzureのサービスをクラシックモデルからAzureResource Manager(ARM)に移行する場合、クラシックモデルにいくつかの予約済みIPアドレスがある場合があります。予約済みIPのARM対応物はパブリックIPです。新しいパブリックIPを作成すると、別のIPアドレスが作成され、IPアドレスをホワイトリストに登録したクライアントで問題が発生する可能性があります。
ただし、FQDNに基づいたホワイトリストを使用することをお勧めします。ただし、それが不可能な場合もあり、IPホワイトリストが次善の選択肢です。新しいIPアドレスを取得せずに、予約済みIPアドレスからパブリックIPアドレスに移行するにはどうすればよいですか?
このトピックの実際のクレジットは、このログエントリのVatsanaKongtakaneに対するものです。ほとんどの人がすでに予約済みのIPを持っていると思うので、私はアイテムを適応させました。StackOverflowに配置する理由は、情報が失われるのを防ぐためです。
ステップ1-ログインしてARM環境を準備する
# Login to your ARM account
Add-AzureRmAccount
# Get a list of available subscriptions
Get-AzureRMSubscription
# Select your subscription
Select-AzureRmSubscription -SubscriptionName <SubscriptionName>
# Register migration provider, this can take a couple minuites
Register-AzureRmResourceProvider -ProviderNamespace Microsoft.ClassicInfrastructureMigrate
# View the current RegistrationState status, do not proceed to step 2 until the status says Registered
Get-AzureRmResourceProvider -ProviderNamespace Microsoft.ClassicInfrastructureMigrate
ステップ2–クラシックアカウントにログインします
# Login to your ASM account
Add-AzureAccount
# Get a list of available subscriptions
Get-AzureSubscription
# Select your subscription
Select-AzureSubscription –SubscriptionName <SubscriptionName>
ステップ3–予約済みIPアドレスを移行する
# Show the list of all reserved IP addresses
Get-AzureReservedIP
# De-associate the reserved IP address from your cloud service
# (only necessary if the IP is still assigned to a service)
Remove-AzureReservedIPAssociation -ReservedIPName <ReservedIPName> -ServiceName <ServiceName>
# Check for issues during migration
Move-AzureReservedIP -ReservedIPName <ReservedIPName> -Validate
# Prepare the ReservedIP for migration
Move-AzureReservedIP -ReservedIPName <ReservedIPName> -Prepare
# Commit to migrating the ReservedIP (take a pretty long time)
Move-AzureReservedIP -ReservedIPName <ReservedIPName> -Commit
ステップ4–検証とクリーンアップ
この時点で、portal.azure.comにログインすると、パブリックIPアドレスの下に正しいIPアドレスのリソースが表示されます。新しいリソースグループに転送されていますが、好きなリソースグループに移動できます。
この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。
侵害の場合は、連絡してください[email protected]
コメントを追加