Azure Service Bus、Relay、Event Hubs に対する Azure Service Manager のサポートの非推奨化

次世代のクラウド インフラストラクチャ スタックである Resource Manager により、"従来の" Azure サービス管理モデル (クラシック デプロイ モデル) は完全に置き換えられます。 その結果、クラシック デプロイ モデルの REST API と Service Bus、Relay、Event Hubs は、2021 年 12 月 1 日に廃止される予定です。 この非推奨化は、Microsoft Tech Community の発表で最初に発表されました。 簡単に見分けることができるように、これらの API の URI には management.core.windows.net が含まれます。 非推奨になった API と、代わりに使用する必要がある Azure Resource Manager バージョンの API の一覧については、次の表を参照してください。

Service Bus、Relay、Event Hubs を引き続き使用するには、2021 年 11 月 30 日までに Resource Manager に移行してください。 まだ古い API を使用しているお客様には、すぐに切り替えて Resource Manager にしかないメリットを利用することをお勧めします。リソースのグループ化、タグ、合理化されたデプロイと管理のプロセス、Azure のロールベースのアクセス制御 (Azure RBAC) を使用するきめ細かなアクセス制御などがあります。

Azure Service Bus、Relay、Event Hubs に関する Service Manager API と Resource Manager API について詳しくは、REST API のドキュメントをご覧ください。

Service Manager REST API と Resource Manager REST API

Service Manager API (非推奨) Resource Manager - Service Bus API Resource Manager - Event Hubs API Resource Manager - Relay API
Namespaces-GetNamespaceAsync
サービス バスの名前空間を取得する
イベント ハブの名前空間を取得する
リレーの名前空間を取得する
GET https://management.core.windows.net/{subscription ID}/services/ServiceBus/Namespaces/{namespace name}
get get get
ConnectionDetails-GetConnectionDetails
サービス バス/イベント ハブ/リレー GetConnectionDetals
GET https://management.core.windows.net/{subscription ID}/services/ServiceBus/Namespaces/{namespace name}/ConnectionDetails
listkeys listkeys listkeys
Topics-GetTopicsAsync
Service Bus
GET https://management.core.windows.net/{subscription ID}/services/ServiceBus/Namespaces/{namespace name}/topics? $skip={skip}&$top={top}
list    
Queues-GetQueueAsync
Service Bus
GET https://management.core.windows.net/{subscription ID}/services/ServiceBus/Namespaces/{namespace name}/queues/{queueName}
get    
Relays-GetRelaysAsync
リレーを取得する
GET https://management.core.windows.net/{subscription ID}/services/ServiceBus/Namespaces/{namespace name}/relays? $skip={skip}&$top={top}
    list
NamespaceAuthorizationRules-GetNamespaceAuthorizationRuleAsync
サービス バス/イベント ハブ/リレー GetNamespaceAuthRule
GET https://management.core.windows.net/{subscription ID}/services/ServiceBus/Namespaces/{namespace name}/authorizationrules?
getauthorizationrule getauthorizationrule getauthorizationrule
Namespaces-DeleteNamespaceAsync
サービス バスの名前空間を削除する
イベント ハブの名前空間を削除する
リレーの名前空間を削除する
DELETE https://management.core.windows.net/{subscription ID}/services/ServiceBus/Namespaces/{namespace name}
delete delete delete
MessagingSKUPlan-GetPlanAsync
サービス バス/イベント ハブ/リレーの名前空間を取得する
GET https://management.core.windows.net/{subscription ID}/services/ServiceBus/Namespaces/{namespace name}/MessagingPlan
get get get
MessagingSKUPlan-UpdatePlanAsync
サービス バス/イベント ハブ/リレーの名前空間を取得する
PUT https://management.core.windows.net/{subscription ID}/services/ServiceBus/Namespaces/{namespace name}/MessagingPlan
createorupdate createorupdate createorupdate
NamespaceAuthorizationRules-UpdateNamespaceAuthorizationRuleAsync
サービス バス/イベント ハブ/リレーの名前空間を取得する
PUT https://management.core.windows.net/{subscription ID}/services/ServiceBus/Namespaces/{namespace name}/AuthorizationRules/{rule name}
createorupdate createorupdateauthorizationrule createorupdateauthorizationrule
NamespaceAuthorizationRules-CreateNamespaceAuthorizationRuleAsync
サービス バス/イベント ハブ/リレー
PUT https://management.core.windows.net/{subscription ID}/services/ServiceBus/Namespaces/{namespace name}/AuthorizationRules/{rule name}
createorupdate createorupdateauthorizationrule createorupdateauthorizationrule
NamespaceProperties-GetNamespacePropertiesAsync
サービス バスの名前空間を取得する
イベント ハブの名前空間を取得する
リレーの名前空間を取得する
GET https://management.core.windows.net/{subscription ID}/services/ServiceBus/Namespaces/{namespace name}
get get get
RegionCodes-GetRegionCodesAsync
サービス バス/イベント ハブ/リレーの名前空間を取得する
GET https://management.core.windows.net/{subscription ID}/services/ServiceBus/Namespaces/{namespace name}
     
NamespaceProperties-UpdateNamespacePropertyAsync
サービス バス/イベント ハブ/リレー
GET https://management.core.windows.net/{subscription ID}/services/ServiceBus/Regions/
createorupdate createorupdate createorupdate
EventHubsCrud-ListEventHubsAsync
イベント ハブの一覧を取得する
GET https://management.core.windows.net/{subscription ID}/services/ServiceBus/Namespaces/{namespace name}/eventhubs?$skip={skip}&$top={top}
  list  
EventHubsCrud-GetEventHubAsync
イベント ハブを取得する
GET https://management.core.windows.net/{subscription ID}/services/ServiceBus/Namespaces/{namespace name}/eventhubs/{eventHubPath}
  get  
NamespaceAuthorizationRules-DeleteNamespaceAuthorizationRuleAsync
サービス バス/イベント ハブ/リレー
DELETE https://management.core.windows.net/{subscription ID}/services/ServiceBus/Namespaces/{namespace name}/AuthorizationRules/{rule name}
deleteauthorizationrule deleteauthorizationrule deleteauthorizationrule
NamespaceAuthorizationRules-GetNamespaceAuthorizationRulesAsync
サービス バス/イベント ハブ/リレー
GET https://management.core.windows.net/{subscription ID}/services/ServiceBus/Namespaces/{namespace name}/AuthorizationRules
listauthorizationrules listauthorizationrules listauthorizationrules
NamespaceAvailability-IsNamespaceAvailable
サービス バス名前空間の可用性
GET https://management.core.windows.net/{subscription ID}/services/ServiceBus/CheckNamespaceAvailability/?namespace=<namespaceValue>
checknameavailability checknameavailability checknameavailability
Namespaces-CreateOrUpdateNamespaceAsync
サービス バス/イベント ハブ/リレー
PUT https://management.core.windows.net/{subscription ID}/services/ServiceBus/Namespaces/{namespace name}
createorupdate createorupdate createorupdate
Topics-GetTopicAsync
GET https://management.core.windows.net/{subscription ID}/services/ServiceBus/Namespaces/{namespace name}/topics/{topicPath}
get    

Service Manager PowerShell と Resource Manager PowerShell

Service Manager PowerShell コマンド (非推奨) Resource Manager の新しいコマンド Resource Manager のさらに新しいコマンド
Get-AzureSBAuthorizationRule Get-AzureRmServiceBusAuthorizationRule Get-AzServiceBusAuthorizationRule
Get-AzureSBLocation Get-AzureRmServiceBusGeoDRConfiguration Get-AzServiceBusGeoDRConfiguration
Get-AzureSBNamespace Get-AzureRmServiceBusNamespace Get-AzServiceBusNamespace
New-AzureSBAuthorizationRule New-AzureRmServiceBusAuthorizationRule New-AzServiceBusAuthorizationRule
New-AzureSBNamespace New-AzureRmServiceBusNamespace New-AzServiceBusNamespace
Remove-AzureSBAuthorizationRule Remove-AzureRmServiceBusAuthorizationRule Remove-AzServiceBusAuthorizationRule
Remove-AzureSBNamespace Remove-AzureRmServiceBusNamespace Remove-AzServiceBusNamespace
Set-AzureSBAuthorizationRule Set-AzureRmServiceBusAuthorizationRule Set-AzServiceBusAuthorizationRule

次のステップ

次のドキュメントを参照してください。