支持移动操作的资源Move operation support for resources

本文列出某个 Azure 资源类型是否支持移动操作。This article lists whether an Azure resource type supports the move operation. 它还提供了有关移动资源时要考虑的特殊条件的信息。It also provides information about special conditions to consider when moving a resource.

跳转到资源提供程序命名空间:Jump to a resource provider namespace:

Microsoft.AlertsManagementMicrosoft.AlertsManagement

资源类型Resource type 资源组Resource group 订阅Subscription
actionrulesactionrules Yes Yes

Microsoft.AnalysisServicesMicrosoft.AnalysisServices

资源类型Resource type 资源组Resource group 订阅Subscription
serversservers Yes Yes

Microsoft.ApiManagementMicrosoft.ApiManagement

资源类型Resource type 资源组Resource group 订阅Subscription
服务service Yes Yes

Microsoft.AppServiceMicrosoft.AppService

资源类型Resource type 资源组Resource group 订阅Subscription
apiappsapiapps No No
appidentitiesappidentities No No
gatewaysgateways No No

Microsoft.AuthorizationMicrosoft.Authorization

资源类型Resource type 资源组Resource group 订阅Subscription
policyassignmentspolicyassignments No No

Microsoft.AutomationMicrosoft.Automation

资源类型Resource type 资源组Resource group 订阅Subscription
automationaccountsautomationaccounts Yes Yes
automationaccounts/configurationsautomationaccounts / configurations Yes Yes
automationaccounts/runbooksautomationaccounts / runbooks Yes Yes

Important

Runbook 必须与自动化帐户存在于同一资源组中。Runbooks must exist in the same resource group as the Automation Account.

Microsoft.AzureActiveDirectoryMicrosoft.AzureActiveDirectory

资源类型Resource type 资源组Resource group 订阅Subscription
b2cdirectoriesb2cdirectories Yes Yes

Microsoft.AzureStackMicrosoft.AzureStack

资源类型Resource type 资源组Resource group 订阅Subscription
registrationsregistrations Yes Yes

Microsoft.BackupMicrosoft.Backup

资源类型Resource type 资源组Resource group 订阅Subscription
backupvaultbackupvault No No

Microsoft.BatchMicrosoft.Batch

资源类型Resource type 资源组Resource group 订阅Subscription
batchaccountsbatchaccounts Yes Yes

Microsoft.CacheMicrosoft.Cache

资源类型Resource type 资源组Resource group 订阅Subscription
redisredis Yes Yes

Important

如果 Azure Redis 缓存实例配置了虚拟网络,则无法将该实例移到其他订阅。If the Azure Cache for Redis instance is configured with a virtual network, the instance can't be moved to a different subscription. 请参阅网络移动限制See Networking move limitations.

Microsoft.CdnMicrosoft.Cdn

资源类型Resource type 资源组Resource group 订阅Subscription
cdnwebapplicationfirewallpoliciescdnwebapplicationfirewallpolicies No No
配置文件profiles Yes Yes
profiles/endpointsprofiles / endpoints Yes Yes

Microsoft.ClassicComputeMicrosoft.ClassicCompute

资源类型Resource type 资源组Resource group 订阅Subscription
domainnamesdomainnames Yes No
virtualmachinesvirtualmachines Yes No

Important

请参阅经典部署移动指南See Classic deployment move guidance. 可以使用特定于该方案的操作跨订阅移动经典部署资源。Classic deployment resources can be moved across subscriptions with an operation specific to that scenario.

Microsoft.ClassicNetworkMicrosoft.ClassicNetwork

资源类型Resource type 资源组Resource group 订阅Subscription
networksecuritygroupsnetworksecuritygroups No No
reservedipsreservedips No No
virtualnetworksvirtualnetworks No No

Important

请参阅经典部署移动指南See Classic deployment move guidance. 可以使用特定于该方案的操作跨订阅移动经典部署资源。Classic deployment resources can be moved across subscriptions with an operation specific to that scenario.

Microsoft.ClassicStorageMicrosoft.ClassicStorage

资源类型Resource type 资源组Resource group 订阅Subscription
storageaccountsstorageaccounts Yes No

Important

请参阅经典部署移动指南See Classic deployment move guidance. 可以使用特定于该方案的操作跨订阅移动经典部署资源。Classic deployment resources can be moved across subscriptions with an operation specific to that scenario.

Microsoft.CognitiveServicesMicrosoft.CognitiveServices

资源类型Resource type 资源组Resource group 订阅Subscription
accountsaccounts Yes Yes

Microsoft.ComputeMicrosoft.Compute

资源类型Resource type 资源组Resource group 订阅Subscription
availabilitysetsavailabilitysets Yes Yes
diskencryptionsetsdiskencryptionsets No No
disksdisks Yes Yes
galleriesgalleries No No
galleries/imagesgalleries / images No No
galleries/images/versionsgalleries / images / versions No No
hostgroupshostgroups No No
hostgroups/hostshostgroups / hosts No No
imagesimages Yes Yes
proximityplacementgroupsproximityplacementgroups No No
restorepointcollectionsrestorepointcollections No No
sharedvmimagessharedvmimages No No
sharedvmimages/versionssharedvmimages / versions No No
snapshotssnapshots Yes Yes
virtualmachinesvirtualmachines Yes Yes
virtualmachines/extensionsvirtualmachines / extensions Yes Yes
virtualmachinescalesetsvirtualmachinescalesets Yes Yes

Microsoft.ContainerRegistryMicrosoft.ContainerRegistry

资源类型Resource type 资源组Resource group 订阅Subscription
registriesregistries Yes Yes
registries/buildtasksregistries / buildtasks Yes Yes
registries/replicationsregistries / replications Yes Yes
registries/tasksregistries / tasks Yes Yes
registries/webhooksregistries / webhooks Yes Yes

Microsoft.ContainerServiceMicrosoft.ContainerService

资源类型Resource type 资源组Resource group 订阅Subscription
containerservicescontainerservices No No
managedclustersmanagedclusters No No
openshiftmanagedclustersopenshiftmanagedclusters No No

Microsoft.DataFactoryMicrosoft.DataFactory

资源类型Resource type 资源组Resource group 订阅Subscription
datafactoriesdatafactories Yes Yes
factoriesfactories Yes Yes

Microsoft.DataMigrationMicrosoft.DataMigration

资源类型Resource type 资源组Resource group 订阅Subscription
servicesservices No No
services/projectsservices / projects No No
slotsslots No No

Microsoft.DBforMariaDBMicrosoft.DBforMariaDB

资源类型Resource type 资源组Resource group 订阅Subscription
serversservers Yes Yes

Microsoft.DBforMySQLMicrosoft.DBforMySQL

资源类型Resource type 资源组Resource group 订阅Subscription
serversservers Yes Yes

Microsoft.DBforPostgreSQLMicrosoft.DBforPostgreSQL

资源类型Resource type 资源组Resource group 订阅Subscription
servergroupsservergroups No No
serversservers Yes Yes
serversv2serversv2 Yes Yes

Microsoft.DevicesMicrosoft.Devices

资源类型Resource type 资源组Resource group 订阅Subscription
elasticpoolselasticpools No No
elasticpools/iothubtenantselasticpools / iothubtenants No No
iothubsiothubs Yes Yes
provisioningservicesprovisioningservices Yes Yes

Microsoft.DocumentDBMicrosoft.DocumentDB

资源类型Resource type 资源组Resource group 订阅Subscription
databaseaccountsdatabaseaccounts Yes Yes

Microsoft.EventGridMicrosoft.EventGrid

资源类型Resource type 资源组Resource group 订阅Subscription
domainsdomains Yes Yes
topicstopics Yes Yes

Microsoft.EventHubMicrosoft.EventHub

资源类型Resource type 资源组Resource group 订阅Subscription
clustersclusters Yes Yes
namespacesnamespaces Yes Yes

Microsoft.HDInsightMicrosoft.HDInsight

资源类型Resource type 资源组Resource group 订阅Subscription
clustersclusters Yes Yes

Important

可以将 HDInsight 群集移到新订阅或资源组。You can move HDInsight clusters to a new subscription or resource group. 但是,无法在订阅之间移动链接到 HDInsight 群集的网络资源(例如虚拟网络、NIC 或负载均衡器)。However, you can't move across subscriptions the networking resources linked to the HDInsight cluster (such as the virtual network, NIC, or load balancer). 此外,无法将连接到群集的虚拟机的 NIC 移到新的资源组。In addition, you can't move to a new resource group a NIC that is attached to a virtual machine for the cluster.

将 HDInsight 群集移至新订阅时,请先移动其他资源(例如存储帐户)。When moving an HDInsight cluster to a new subscription, first move other resources (like the storage account). 然后移动 HDInsight 群集本身。Then, move the HDInsight cluster by itself.

Microsoft.ImportExportMicrosoft.ImportExport

资源类型Resource type 资源组Resource group 订阅Subscription
jobsjobs Yes Yes

microsoft.insightsmicrosoft.insights

资源类型Resource type 资源组Resource group 订阅Subscription
accountsaccounts No No
actiongroupsactiongroups Yes Yes
activitylogalertsactivitylogalerts No No
alertrulesalertrules Yes Yes
autoscalesettingsautoscalesettings Yes Yes
componentscomponents Yes Yes
guestdiagnosticsettingsguestdiagnosticsettings No No
metricalertsmetricalerts No No
notificationgroupsnotificationgroups No No
notificationrulesnotificationrules No No
scheduledqueryrulesscheduledqueryrules Yes Yes
webtestswebtests Yes Yes
workbooksworkbooks Yes Yes

Important

确保移到新订阅时,不会超出订阅配额Make sure moving to new subscription doesn't exceed subscription quotas.

Microsoft.KeyVaultMicrosoft.KeyVault

资源类型Resource type 资源组Resource group 订阅Subscription
vaultsvaults Yes Yes

Important

用于磁盘加密的 Key Vault 不能移到同一订阅中的资源组,也不能跨订阅移动。Key Vaults used for disk encryption can't be moved to a resource group in the same subscription or across subscriptions.

Microsoft.KustoMicrosoft.Kusto

资源类型Resource type 资源组Resource group 订阅Subscription
clustersclusters Yes Yes

Microsoft.LogicMicrosoft.Logic

资源类型Resource type 资源组Resource group 订阅Subscription
hostingenvironmentshostingenvironments No No
integrationaccountsintegrationaccounts Yes Yes
integrationserviceenvironmentsintegrationserviceenvironments No No
isolatedenvironmentsisolatedenvironments No No
workflowsworkflows Yes Yes

Microsoft.ManagedIdentityMicrosoft.ManagedIdentity

资源类型Resource type 资源组Resource group 订阅Subscription
userassignedidentitiesuserassignedidentities No No

Microsoft.MediaMicrosoft.Media

资源类型Resource type 资源组Resource group 订阅Subscription
mediaservicesmediaservices Yes Yes
mediaservices/liveeventsmediaservices / liveevents Yes Yes
mediaservices/streamingendpointsmediaservices / streamingendpoints Yes Yes

Microsoft.NetworkMicrosoft.Network

资源类型Resource type 资源组Resource group 订阅Subscription
applicationgatewaysapplicationgateways No No
applicationgatewaywebapplicationfirewallpoliciesapplicationgatewaywebapplicationfirewallpolicies No No
applicationsecuritygroupsapplicationsecuritygroups Yes Yes
azurefirewallsazurefirewalls Yes Yes
bastionhostsbastionhosts No No
connectionsconnections Yes Yes
ddoscustompoliciesddoscustompolicies Yes Yes
ddosprotectionplansddosprotectionplans No No
dnszonesdnszones Yes Yes
expressroutecircuitsexpressroutecircuits No No
expressroutecrossconnectionsexpressroutecrossconnections No No
expressroutegatewaysexpressroutegateways No No
expressrouteportsexpressrouteports No No
frontdoorsfrontdoors No No
frontdoorwebapplicationfirewallpoliciesfrontdoorwebapplicationfirewallpolicies No No
loadbalancersloadbalancers 是 - 基本 SKUYes - Basic SKU
否 - 标准 SKUNo - Standard SKU
是 - 基本 SKUYes - Basic SKU
否 - 标准 SKUNo - Standard SKU
localnetworkgatewayslocalnetworkgateways Yes Yes
natgatewaysnatgateways Yes Yes
networkintentpoliciesnetworkintentpolicies Yes Yes
networkinterfacesnetworkinterfaces Yes Yes
networkprofilesnetworkprofiles No No
networksecuritygroupsnetworksecuritygroups Yes Yes
networkwatchersnetworkwatchers Yes Yes
networkwatchers/connectionmonitorsnetworkwatchers / connectionmonitors Yes Yes
networkwatchers/lensesnetworkwatchers / lenses Yes Yes
networkwatchers/pingmeshesnetworkwatchers / pingmeshes Yes Yes
p2svpngatewaysp2svpngateways No No
privatednszonesprivatednszones Yes Yes
privatednszones/virtualnetworklinksprivatednszones / virtualnetworklinks Yes Yes
privateendpointsprivateendpoints No No
privatelinkservicesprivatelinkservices No No
publicipaddressespublicipaddresses 是 - 基本 SKUYes - Basic SKU
否 - 标准 SKUNo - Standard SKU
是 - 基本 SKUYes - Basic SKU
否 - 标准 SKUNo - Standard SKU
publicipprefixespublicipprefixes Yes Yes
routefiltersroutefilters No No
routetablesroutetables Yes Yes
securegatewayssecuregateways Yes Yes
serviceendpointpoliciesserviceendpointpolicies Yes Yes
trafficmanagerprofilestrafficmanagerprofiles Yes Yes
virtualhubsvirtualhubs No No
virtualnetworkgatewaysvirtualnetworkgateways Yes Yes
virtualnetworksvirtualnetworks Yes Yes
virtualnetworktapsvirtualnetworktaps No No
virtualwansvirtualwans No No
vpngateways(虚拟 WAN)vpngateways (Virtual WAN) No No
vpnsites(虚拟 WAN)vpnsites (Virtual WAN) No No
webapplicationfirewallpolicieswebapplicationfirewallpolicies Yes Yes

Important

请参阅网络移动指南See Networking move guidance.

Microsoft.NotificationHubsMicrosoft.NotificationHubs

资源类型Resource type 资源组Resource group 订阅Subscription
namespacesnamespaces Yes Yes
namespaces/notificationhubsnamespaces / notificationhubs Yes Yes

Microsoft.OperationalInsightsMicrosoft.OperationalInsights

资源类型Resource type 资源组Resource group 订阅Subscription
workspacesworkspaces Yes Yes

Important

确保移到新订阅时,不会超出订阅配额Make sure moving to new subscription doesn't exceed subscription quotas.

Microsoft.OperationsManagementMicrosoft.OperationsManagement

资源类型Resource type 资源组Resource group 订阅Subscription
managementconfigurationsmanagementconfigurations Yes Yes
solutionssolutions Yes Yes
视图views Yes Yes

Microsoft.PortalMicrosoft.Portal

资源类型Resource type 资源组Resource group 订阅Subscription
dashboardsdashboards Yes Yes

Microsoft.PowerBIMicrosoft.PowerBI

资源类型Resource type 资源组Resource group 订阅Subscription
workspacecollectionsworkspacecollections Yes Yes

Microsoft.PowerBIDedicatedMicrosoft.PowerBIDedicated

资源类型Resource type 资源组Resource group 订阅Subscription
capacitiescapacities Yes Yes

Microsoft.RecoveryServicesMicrosoft.RecoveryServices

资源类型Resource type 资源组Resource group 订阅Subscription
vaultsvaults Yes Yes

Microsoft.RelayMicrosoft.Relay

资源类型Resource type 资源组Resource group 订阅Subscription
namespacesnamespaces Yes Yes

Microsoft.ResourceGraphMicrosoft.ResourceGraph

资源类型Resource type 资源组Resource group 订阅Subscription
查询queries Yes Yes

Microsoft.SchedulerMicrosoft.Scheduler

资源类型Resource type 资源组Resource group 订阅Subscription
flowsflows Yes Yes
jobcollectionsjobcollections Yes Yes

Microsoft.SecurityMicrosoft.Security

资源类型Resource type 资源组Resource group 订阅Subscription
iotsecuritysolutionsiotsecuritysolutions Yes Yes
playbookconfigurationsplaybookconfigurations No No

Microsoft.ServiceBusMicrosoft.ServiceBus

资源类型Resource type 资源组Resource group 订阅Subscription
namespacesnamespaces Yes Yes

Microsoft.ServiceFabricMicrosoft.ServiceFabric

资源类型Resource type 资源组Resource group 订阅Subscription
applicationsapplications No No
clustersclusters Yes Yes
clusters/applicationsclusters / applications No No
containergroupscontainergroups No No
containergroupsetscontainergroupsets No No
edgeclustersedgeclusters No No
networksnetworks No No
secretstoressecretstores No No
volumesvolumes No No

Microsoft.SiteRecoveryMicrosoft.SiteRecovery

资源类型Resource type 资源组Resource group 订阅Subscription
siterecoveryvaultsiterecoveryvault No No

Microsoft.SqlMicrosoft.Sql

资源类型Resource type 资源组Resource group 订阅Subscription
instancepoolsinstancepools No No
managedinstancesmanagedinstances No No
managedinstances/databasesmanagedinstances / databases No No
serversservers Yes Yes
servers/databasesservers / databases Yes Yes
servers/elasticpoolsservers / elasticpools Yes Yes
virtualclustersvirtualclusters Yes Yes

Important

数据库和服务器必须位于同一个资源组中。A database and server must be in the same resource group. 移动 SQL 服务器时,也会移动其所有数据库。When you move a SQL server, all its databases are also moved. 此行为适用于 Azure SQL 数据库和 Azure SQL 数据仓库数据库。This behavior applies to Azure SQL Database and Azure SQL Data Warehouse databases.

Microsoft.StorageMicrosoft.Storage

资源类型Resource type 资源组Resource group 订阅Subscription
storageaccountsstorageaccounts Yes Yes

Microsoft.StreamAnalyticsMicrosoft.StreamAnalytics

资源类型Resource type 资源组Resource group 订阅Subscription
streamingjobsstreamingjobs Yes Yes

Important

当流分析作业处于运行状态时,则无法进行移动。Stream Analytics jobs can't be moved when in running state.

Microsoft.TimeSeriesInsightsMicrosoft.TimeSeriesInsights

资源类型Resource type 资源组Resource group 订阅Subscription
environmentsenvironments Yes Yes
environments/eventsourcesenvironments / eventsources Yes Yes
environments/referencedatasetsenvironments / referencedatasets Yes Yes

Microsoft.WebMicrosoft.Web

资源类型Resource type 资源组Resource group 订阅Subscription
certificatescertificates No Yes
connectiongatewaysconnectiongateways Yes Yes
connectionsconnections Yes Yes
customapiscustomapis Yes Yes
hostingenvironmentshostingenvironments No No
serverfarmsserverfarms Yes Yes
sitessites Yes Yes
sites/premieraddonssites / premieraddons Yes Yes
sites/slotssites / slots Yes Yes

第三方服务Third-party services

第三方服务目前不支持移动操作。Third-party services currently don't support the move operation.

后续步骤Next steps

有关用于移动资源的命令,请参阅将资源移到新资源组或订阅For commands to move resources, see Move resources to new resource group or subscription.