Erőforrások áthelyezése új erőforráscsoportba vagy előfizetésbeMove resources to a new resource group or subscription
Ebből a cikkből megtudhatja, hogyan helyezheti át az Azure-erőforrásokat egy másik Azure-előfizetésbe vagy egy másik erőforráscsoporthoz ugyanahhoz az előfizetéshez.This article shows you how to move Azure resources to either another Azure subscription or another resource group under the same subscription. Az erőforrások áthelyezéséhez az Azure Portal, az Azure PowerShell, az Azure CLI vagy a REST API használható.You can use the Azure portal, Azure PowerShell, Azure CLI, or the REST API to move resources.
A forrásoldali csoport és a célcsoport is zárolva van az áthelyezési művelet során.Both the source group and the target group are locked during the move operation. Az írási és törlési műveletek le vannak tiltva az erőforráscsoportok között, amíg az áthelyezés be nem fejeződik.Write and delete operations are blocked on the resource groups until the move completes. Ez a zárolás azt jelenti, hogy nem lehet erőforrásokat felvenni, frissíteni vagy törölni az erőforráscsoportok között.This lock means you can't add, update, or delete resources in the resource groups. Nem jelenti azt, hogy az erőforrások zárolva vannak.It doesn't mean the resources are frozen. Ha például egy Azure SQL logikai kiszolgálót és az adatbázisait egy új erőforráscsoporthoz vagy előfizetésbe helyezi át, az adatbázisokat használó alkalmazások nem rendelkeznek állásidővel.For example, if you move an Azure SQL logical server and its databases to a new resource group or subscription, applications that use the databases experience no downtime. Továbbra is olvashatnak és írhatnak az adatbázisokat.They can still read and write to the databases. A zárolás legfeljebb négy órán át tarthat, de a legtöbb lépés sokkal kevesebb időt vehet igénybe.The lock can last for a maximum of four hours, but most moves complete in much less time.
Az erőforrás az áthelyezése során csak egy új erőforráscsoportba vagy előfizetésbe kerül.Moving a resource only moves it to a new resource group or subscription. Az erőforrás helyét az áthelyezési művelet nem módosítja.It doesn't change the location of the resource.
Módosított erőforrás-azonosítóChanged resource ID
Amikor áthelyez egy erőforrást, megváltoztatja az erőforrás-AZONOSÍTÓját.When you move a resource, you change its resource ID. Az erőforrás-azonosító szabványos formátuma /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
.The standard format for a resource ID is /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
. Amikor egy erőforrást új erőforráscsoporthoz vagy előfizetésbe helyez át, egy vagy több értéket kell módosítania az adott útvonalon.When you move a resource to a new resource group or subscription, you change one or more values in that path.
Ha bárhol használja az erőforrás-azonosítót, módosítania kell ezt az értéket.If you use the resource ID anywhere, you'll need to change that value. Ha például egy Egyéni irányítópult található a portálon, amely egy erőforrás-azonosítóra hivatkozik, akkor frissítenie kell ezt az értéket.For example, if you have a custom dashboard in the portal that references a resource ID, you'll need to update that value. Keressen olyan parancsfájlokat vagy sablonokat, amelyeket frissíteni kell az új erőforrás-AZONOSÍTÓhoz.Look for any scripts or templates that need to be updated for the new resource ID.
Ellenőrzőlista az erőforrások áthelyezése előttChecklist before moving resources
Néhány fontos lépést végre kell hajtani az erőforrások áthelyezése előtt.There are some important steps to do before moving a resource. Ezen feltételek ellenőrzésével a hibák elkerülhetőek.By verifying these conditions, you can avoid errors.
Az áthelyezni kívánt erőforrásoknak támogatniuk kell az áthelyezési műveletet.The resources you want to move must support the move operation. Az áthelyezni kívánt erőforrások listáját itt tekintheti meg: a műveletek támogatásának áthelyezése az erőforrásokhoz.For a list of which resources support move, see Move operation support for resources.
Egyes szolgáltatások az erőforrások áthelyezésekor bizonyos korlátozásokkal vagy követelményekkel rendelkeznek.Some services have specific limitations or requirements when moving resources. Ha a következő szolgáltatások bármelyikét áthelyezi, a mozgatás előtt ellenőrizze az útmutatást.If you're moving any of the following services, check that guidance before moving.
- Ha Azure Stack hubot használ, nem helyezhet át erőforrásokat a csoportok között.If you're using Azure Stack Hub, you can't move resources between groups.
- Útmutató App ServicesApp Services move guidance
- Útmutató az Azure DevOps ServiceshezAzure DevOps Services move guidance
- Klasszikus üzembe helyezési modell – útmutató – klasszikus számítás, klasszikus tárolás, klasszikus virtuális hálózatok és Cloud ServicesClassic deployment model move guidance - Classic Compute, Classic Storage, Classic Virtual Networks, and Cloud Services
- Útmutató a hálózatkezelés áthelyezéséhezNetworking move guidance
- Útmutató Recovery ServicesRecovery Services move guidance
- Útmutató Virtual MachinesVirtual Machines move guidance
- Ha egy Azure-előfizetést egy új felügyeleti csoportba szeretne áthelyezni, tekintse meg az előfizetések áthelyezésecíműTo move an Azure subscription to a new management group, see Move subscriptions.
Ha olyan erőforrást helyez át, amely közvetlenül az erőforráshoz (vagy egy alárendelt erőforráshoz) van hozzárendelve egy Azure-szerepkörrel, a szerepkör-hozzárendelés nem kerül át és nem lesz árva.If you move a resource that has an Azure role assigned directly to the resource (or a child resource), the role assignment isn't moved and becomes orphaned. Az áthelyezés után újra létre kell hoznia a szerepkör-hozzárendelést.After the move, you must re-create the role assignment. Végül az árva szerepkör-hozzárendelés automatikusan törlődik, de javasoljuk, hogy az áthelyezés előtt távolítsa el a szerepkör-hozzárendelést.Eventually, the orphaned role assignment is automatically removed, but we recommend removing the role assignment before the move.
A szerepkör-hozzárendelések kezelésével kapcsolatos információkért tekintse meg az Azure szerepkör-hozzárendelések listázása és az Azure-szerepkörök hozzárendelésecímű témakört.For information about how to manage role assignments, see List Azure role assignments and Assign Azure roles.
A forrás-és a cél-előfizetésnek aktívnak kell lennie.The source and destination subscriptions must be active. Ha problémája van egy letiltott fiók engedélyezésével, hozzon létre egy Azure-támogatási kérelmet.If you have trouble enabling an account that has been disabled, create an Azure support request. Válassza az előfizetés kezelése lehetőséget a probléma típusához.Select Subscription Management for the issue type.
A forrás és a cél előfizetésnek ugyanabban a Azure Active Directory bérlőnbelül kell lennie.The source and destination subscriptions must exist within the same Azure Active Directory tenant. Annak ellenőrzését, hogy mindkét előfizetés ugyanazzal a bérlői AZONOSÍTÓval rendelkezik-e, használja a Azure PowerShell vagy az Azure CLI-t.To check that both subscriptions have the same tenant ID, use Azure PowerShell or Azure CLI.
Azure PowerShell esetén használja a következőt:For Azure PowerShell, use:
(Get-AzSubscription -SubscriptionName <your-source-subscription>).TenantId (Get-AzSubscription -SubscriptionName <your-destination-subscription>).TenantId
Azure CLI esetén használja az alábbi parancsot:For Azure CLI, use:
az account show --subscription <your-source-subscription> --query tenantId az account show --subscription <your-destination-subscription> --query tenantId
Ha a forrás és a cél előfizetések bérlői azonosítói nem egyeznek, a következő módszerekkel egyeztetheti a bérlői azonosítókat:If the tenant IDs for the source and destination subscriptions aren't the same, use the following methods to reconcile the tenant IDs:
A cél előfizetést regisztrálni kell az áthelyezett erőforrás erőforrás-szolgáltatóján.The destination subscription must be registered for the resource provider of the resource being moved. Ha nem, hibaüzenetet kap arról, hogy az előfizetés nincs regisztrálva az erőforrás típusától függően.If not, you receive an error stating that the subscription is not registered for a resource type. Ez a hiba akkor fordulhat elő, amikor új előfizetésre helyezi át az erőforrást, de az előfizetést soha nem használták az adott erőforrás-típussal.You might see this error when moving a resource to a new subscription, but that subscription has never been used with that resource type.
A PowerShell esetében használja a következő parancsokat a regisztráció állapotának lekéréséhez:For PowerShell, use the following commands to get the registration status:
Set-AzContext -Subscription <destination-subscription-name-or-id> Get-AzResourceProvider -ListAvailable | Select-Object ProviderNamespace, RegistrationState
Erőforrás-szolgáltató regisztrálásához használja a következőt:To register a resource provider, use:
Register-AzResourceProvider -ProviderNamespace Microsoft.Batch
Az Azure CLI esetén használja a következő parancsokat a regisztráció állapotának lekéréséhez:For Azure CLI, use the following commands to get the registration status:
az account set -s <destination-subscription-name-or-id> az provider list --query "[].{Provider:namespace, Status:registrationState}" --out table
Erőforrás-szolgáltató regisztrálásához használja a következőt:To register a resource provider, use:
az provider register --namespace Microsoft.Batch
Az erőforrásokat áthelyező fióknak legalább a következő engedélyekkel kell rendelkeznie:The account moving the resources must have at least the following permissions:
- Microsoft. Resources/Subscriptions/resourceGroups/moveResources/Action a forrás erőforráscsoport.Microsoft.Resources/subscriptions/resourceGroups/moveResources/action on the source resource group.
- Microsoft. Resources/Subscriptions/resourceGroups/Write a cél erőforráscsoporthoz.Microsoft.Resources/subscriptions/resourceGroups/write on the destination resource group.
Az erőforrások áthelyezése előtt tekintse meg az előfizetéshez tartozó előfizetési kvótákat, amelyre az erőforrásokat áthelyezi.Before moving the resources, check the subscription quotas for the subscription you're moving the resources to. Ha az erőforrások mozgatása azt jelenti, hogy az előfizetés túllépi a korlátait, akkor ellenőriznie kell, hogy a kvóta növekedését igényelhet-e.If moving the resources means the subscription will exceed its limits, you need to review whether you can request an increase in the quota. Az Azure-előfizetések és-szolgáltatások korlátozásait, kvótáit és megkötéseit lásd: az Azure-előfizetés és a szolgáltatási korlátoklistája.For a list of limits and how to request an increase, see Azure subscription and service limits, quotas, and constraints.
Az előfizetések közötti áthelyezéshez az erőforrásnak és a hozzá tartozó erőforrásoknak ugyanabban az erőforráscsoporthoz kell lenniük, és együtt kell őket áthelyezni.For a move across subscriptions, the resource and its dependent resources must be located in the same resource group and they must be moved together. A felügyelt lemezekkel rendelkező virtuális gépek például megkövetelik, hogy a virtuális gép és a felügyelt lemezek együtt legyenek áthelyezve a többi függő erőforrással együtt.For example, a VM with managed disks would require the VM and the managed disks to be moved together, along with other dependent resources.
Ha egy erőforrást új előfizetésre helyez át, ellenőrizze, hogy az erőforrás rendelkezik-e függő erőforrásokkal, és hogy azok ugyanabban az erőforráscsoporthoz találhatók-e.If you're moving a resource to a new subscription, check to see whether the resource has any dependent resources, and whether they're located in the same resource group. Ha az erőforrások nem ugyanabban az erőforráscsoporthoz találhatók, ellenőrizze, hogy az erőforrások kombinálhatók-e ugyanabba az erőforráscsoporthoz.If the resources aren't in the same resource group, check to see whether the resources can be combined into the same resource group. Ha igen, az összes erőforrást ugyanabba az erőforráscsoporthoz helyezheti át egy áthelyezési művelettel az erőforráscsoportok között.If so, bring all these resources into the same resource group by using a move operation across resource groups.
További információ: forgatókönyv az előfizetések közötti áthelyezéshez.For more information, see Scenario for move across subscriptions.
Forgatókönyv az előfizetések közötti áthelyezéshezScenario for move across subscriptions
Az erőforrások egyik előfizetésből egy másikba való áthelyezése három lépésből álló folyamat:Moving resources from one subscription to another is a three-step process:
Illusztrációs célokból csak egy függő erőforrás áll rendelkezésre.For illustration purposes, we have only one dependent resource.
- 1. lépés: Ha a függő erőforrások különböző erőforráscsoportok között oszlanak el, először helyezze át őket egyetlen erőforráscsoport-csoportba.Step 1: If dependent resources are distributed across different resource groups, first move them into one resource group.
- 2. lépés: helyezze át az erőforrást és a függő erőforrásokat a forrás-előfizetésből a cél előfizetésbe.Step 2: Move the resource and dependent resources together from the source subscription to the target subscription.
- 3. lépés: igény szerint terjesztheti újra a függő erőforrásokat a cél előfizetésben lévő különböző erőforráscsoportok között.Step 3: Optionally, redistribute the dependent resources to different resource groups within the target subscription.
Áthelyezés ellenőrzéseValidate move
Az áthelyezési művelet ellenőrzése lehetővé teszi az áthelyezési forgatókönyv tesztelését anélkül, hogy ténylegesen áthelyezi az erőforrásokat.The validate move operation lets you test your move scenario without actually moving the resources. Ezzel a művelettel ellenőrizhető, hogy az áthelyezés sikeres lesz-e.Use this operation to check if the move will succeed. Az érvényesítés automatikusan megtörténik az áthelyezési kérelem elküldésekor.Validation is automatically called when you send a move request. Ezt a műveletet csak akkor használja, ha előre meg kell határoznia az eredményeket.Use this operation only when you need to predetermine the results. A művelet futtatásához a következőkre lesz szüksége:To run this operation, you need the:
- a forrás erőforráscsoport nevename of the source resource group
- a célként megadott erőforráscsoport erőforrás-azonosítójaresource ID of the target resource group
- az áthelyezni kívánt erőforrások erőforrás-azonosítójaresource ID of each resource to move
- a fiók hozzáférési jogkivonatathe access token for your account
Küldje el a következő kérelmet:Send the following request:
POST https://management.azure.com/subscriptions/<subscription-id>/resourceGroups/<source-group>/validateMoveResources?api-version=2019-05-10
Authorization: Bearer <access-token>
Content-type: application/json
Kérelem törzse:With a request body:
{
"resources": ["<resource-id-1>", "<resource-id-2>"],
"targetResourceGroup": "/subscriptions/<subscription-id>/resourceGroups/<target-group>"
}
Ha a kérelem megfelelően van formázva, a művelet a következőket adja vissza:If the request is formatted correctly, the operation returns:
Response Code: 202
cache-control: no-cache
pragma: no-cache
expires: -1
location: https://management.azure.com/subscriptions/<subscription-id>/operationresults/<operation-id>?api-version=2018-02-01
retry-after: 15
...
Az 202-es állapotkód azt jelzi, hogy az érvényesítési kérést elfogadták, de még nem határozta meg, ha az áthelyezési művelet sikeres lesz.The 202 status code indicates the validation request was accepted, but it hasn't yet determined if the move operation will succeed. Az location
érték tartalmaz egy URL-címet, amelyet a hosszan futó művelet állapotának vizsgálatához használ.The location
value contains a URL that you use to check the status of the long-running operation.
Az állapot ellenõrzéséhez küldje el a következő kérelmet:To check the status, send the following request:
GET <location-url>
Authorization: Bearer <access-token>
Amíg a művelet még fut, továbbra is megkapja a 202 állapotkódot.While the operation is still running, you continue to receive the 202 status code. Várjon az értékben szereplő másodpercek számát, retry-after
mielőtt újra próbálkozik.Wait the number of seconds indicated in the retry-after
value before trying again. Ha az áthelyezési művelet sikeresen érvényesítve lett, a 204-as állapotkód jelenik meg.If the move operation validates successfully, you receive the 204 status code. Ha az áthelyezés ellenőrzése sikertelen, hibaüzenet jelenik meg, például:If the move validation fails, you receive an error message, such as:
{"error":{"code":"ResourceMoveProviderValidationFailed","message":"<message>"...}}
A portál használataUse the portal
Az erőforrások áthelyezéséhez válassza ki az erőforrást tartalmazó erőforráscsoportot.To move resources, select the resource group that contains those resources.
Ha megtekinti az erőforráscsoportot, az áthelyezés lehetőség le lesz tiltva.When you view the resource group, the move option is disabled.
Az áthelyezés beállítás engedélyezéséhez válassza ki az áthelyezni kívánt erőforrásokat.To enable the move option, select the resources you want to move. Az összes erőforrás kiválasztásához jelölje be a jelölőnégyzetet a lista tetején.To select all of the resources, select the checkbox at the top of list. Vagy válassza az erőforrások külön lehetőséget.Or, select resources individually. Az erőforrások kiválasztása után az áthelyezés beállítás engedélyezve van.After selecting resources, the move option is enabled.
Kattintson az Áthelyezés gombra.Select the Move button.
Ez a gomb három lehetőséget biztosít:This button gives you three options:
- Új erőforráscsoport áthelyezése.Move to a new resource group.
- Váltson át egy új előfizetésre.Move to a new subscription.
- Váltson át egy új régióra.Move to a new region. A régiók módosításához lásd: erőforrások áthelyezése régiók között (erőforráscsoport).To change regions, see Move resources across regions (from resource group).
Válassza ki, hogy az erőforrásokat új erőforráscsoporthoz vagy új előfizetésre kívánja-e áthelyezni.Select whether you're moving the resources to a new resource group or a new subscription.
Válassza ki a cél erőforráscsoportot.Select the destination resource group. Nyugtázza, hogy frissítenie kell a parancsfájlokat ezekhez az erőforrásokhoz, és kattintson az OK gombra.Acknowledge that you need to update scripts for these resources and select OK. Ha az új előfizetésre való áttérést választotta, ki kell választania a cél előfizetést is.If you selected to move to a new subscription, you must also select the destination subscription.
Az erőforrások áthelyezésének ellenőrzése után megjelenik egy értesítés arról, hogy az áthelyezési művelet fut.After validating that the resources can be moved, you see a notification that the move operation is running.
Ha a művelet befejeződött, értesítést kap az eredményről.When it has completed, you're notified of the result.
Ha hibaüzenetet kap, tekintse meg Az Azure-erőforrások új erőforráscsoporthoz vagy előfizetésbe való áthelyezésével kapcsolatostémakört.If you get an error, see Troubleshoot moving Azure resources to new resource group or subscription.
Azure PowerShell használatávalUse Azure PowerShell
A meglévő erőforrások másik erőforráscsoporthoz vagy előfizetésbe való áthelyezéséhez használja a Move-AzResource parancsot.To move existing resources to another resource group or subscription, use the Move-AzResource command. Az alábbi példa bemutatja, hogyan helyezhet át több erőforrást egy új erőforráscsoporthoz.The following example shows how to move several resources to a new resource group.
$webapp = Get-AzResource -ResourceGroupName OldRG -ResourceName ExampleSite
$plan = Get-AzResource -ResourceGroupName OldRG -ResourceName ExamplePlan
Move-AzResource -DestinationResourceGroupName NewRG -ResourceId $webapp.ResourceId, $plan.ResourceId
Új előfizetésre való áttéréshez adjon meg egy értéket a DestinationSubscriptionId
paraméterhez.To move to a new subscription, include a value for the DestinationSubscriptionId
parameter.
Ha hibaüzenetet kap, tekintse meg Az Azure-erőforrások új erőforráscsoporthoz vagy előfizetésbe való áthelyezésével kapcsolatostémakört.If you get an error, see Troubleshoot moving Azure resources to new resource group or subscription.
Az Azure parancssori felület használatávalUse Azure CLI
A meglévő erőforrások másik erőforráscsoporthoz vagy előfizetésbe való áthelyezéséhez használja az az Resource Move parancsot.To move existing resources to another resource group or subscription, use the az resource move command. Adja meg az áthelyezni kívánt erőforrások erőforrás-azonosítóit.Provide the resource IDs of the resources to move. Az alábbi példa bemutatja, hogyan helyezhet át több erőforrást egy új erőforráscsoporthoz.The following example shows how to move several resources to a new resource group. A --ids
paraméterben adja meg az áthelyezni kívánt erőforrás-azonosítók szóközzel tagolt listáját.In the --ids
parameter, provide a space-separated list of the resource IDs to move.
webapp=$(az resource show -g OldRG -n ExampleSite --resource-type "Microsoft.Web/sites" --query id --output tsv)
plan=$(az resource show -g OldRG -n ExamplePlan --resource-type "Microsoft.Web/serverfarms" --query id --output tsv)
az resource move --destination-group newgroup --ids $webapp $plan
Új előfizetésre való áttéréshez adja meg a --destination-subscription-id
paramétert.To move to a new subscription, provide the --destination-subscription-id
parameter.
Ha hibaüzenetet kap, tekintse meg Az Azure-erőforrások új erőforráscsoporthoz vagy előfizetésbe való áthelyezésével kapcsolatostémakört.If you get an error, see Troubleshoot moving Azure resources to new resource group or subscription.
A REST API használataUse REST API
A meglévő erőforrások másik erőforráscsoporthoz vagy előfizetésbe való áthelyezéséhez használja az erőforrások áthelyezése műveletet.To move existing resources to another resource group or subscription, use the Move resources operation.
POST https://management.azure.com/subscriptions/{source-subscription-id}/resourcegroups/{source-resource-group-name}/moveResources?api-version={api-version}
A kérelem törzsében meg kell adnia a célként megadott erőforráscsoportot és az áthelyezni kívánt erőforrásokat.In the request body, you specify the target resource group and the resources to move.
{
"resources": ["<resource-id-1>", "<resource-id-2>"],
"targetResourceGroup": "/subscriptions/<subscription-id>/resourceGroups/<target-group>"
}
Ha hibaüzenetet kap, tekintse meg Az Azure-erőforrások új erőforráscsoporthoz vagy előfizetésbe való áthelyezésével kapcsolatostémakört.If you get an error, see Troubleshoot moving Azure resources to new resource group or subscription.
Gyakori kérdésekFrequently asked questions
Kérdés: az erőforrás-áthelyezési művelet, amely általában néhány percet vesz igénybe, majdnem egy óráig futott. Van valami baj?Question: My resource move operation, which usually takes a few minutes, has been running for almost an hour. Is there something wrong?
Az erőforrások áthelyezése egy összetett művelet, amely különböző fázisokat tartalmaz.Moving a resource is a complex operation that has different phases. Többek között az áthelyezni kívánt erőforrás erőforrás-szolgáltatóját is magában foglalja.It can involve more than just the resource provider of the resource you're trying to move. Az erőforrás-szolgáltatók közötti függőségek miatt Azure Resource Manager 4 órát engedélyez a művelet befejezéséhez.Because of the dependencies between resource providers, Azure Resource Manager allows 4 hours for the operation to complete. Ez az időszak lehetővé teszi az erőforrás-szolgáltatók számára, hogy helyreálljon az átmeneti problémák miatt.This time period gives resource providers a chance to recover from transient issues. Ha az áthelyezési kérelem a négy órás időszakon belül van, a művelet folyamatosan próbálkozik a végrehajtással, és a folyamat továbbra is sikeres lehet.If your move request is within the four-hour period, the operation keeps trying to complete and may still succeed. A forrás és a cél erőforráscsoport ebben az időszakban zárolva van a konzisztencia-problémák elkerülése érdekében.The source and destination resource groups are locked during this time to avoid consistency issues.
Kérdés: Miért van zárolva az erőforráscsoport az erőforrás-áthelyezés során négy órán keresztül?Question: Why is my resource group locked for four hours during resource move?
Az áthelyezési kérelem legfeljebb négy órát vehet igénybe.A move request is allowed a maximum of four hours to complete. Az áthelyezett erőforrások módosításának megakadályozásához a forrás-és a célként megadott erőforráscsoportok is zárolva lesznek az erőforrás áthelyezése során.To prevent modifications on the resources being moved, both the source and destination resource groups are locked during the resource move.
Az áthelyezési kérelemnek két fázisa van.There are two phases in a move request. Az első fázisban az erőforrás át lesz helyezve.In the first phase, the resource is moved. A második fázisban az értesítéseket a rendszer az áthelyezett erőforrástól függő más erőforrás-szolgáltatóknak küldi el.In the second phase, notifications are sent to other resource providers that are dependent on the resource being moved. Egy erőforráscsoport zárolható a teljes négy órán keresztül, ha az erőforrás-szolgáltató egyik fázisa meghibásodik.A resource group can be locked for the entire four hours when a resource provider fails either phase. Az engedélyezett idő alatt a Resource Manager újrapróbálkozik a sikertelen lépéssel.During the allowed time, Resource Manager retries the failed step.
Ha egy erőforrás nem helyezhető át négy órán belül, a Resource Manager mindkét erőforráscsoportot feloldja.If a resource can't be moved within four hours, Resource Manager unlocks both resource groups. A sikeresen áthelyezett erőforrások a cél erőforráscsoporthoz tartoznak.Resources that were successfully moved are in the destination resource group. A nem áthelyezni kívánt erőforrások a forrás erőforráscsoport felett maradnak.Resources that failed to move are left the source resource group.
Kérdés: milyen következményekkel jár a forrás-és a cél-erőforráscsoport zárolása az erőforrás-áthelyezés során?Question: What are the implications of the source and destination resource groups being locked during the resource move?
A zárolás megakadályozza az erőforráscsoport törlését, egy új erőforrás létrehozását bármelyik erőforráscsoport számára, vagy az áthelyezésben érintett erőforrások törlését.The lock prevents you from deleting either resource group, creating a new resource in either resource group, or deleting any of the resources involved in the move.
Az alábbi képen a Azure Portal hibaüzenet jelenik meg, amikor egy felhasználó egy folyamatos áthelyezés részét képező erőforráscsoportot próbál törölni.The following image shows an error message from the Azure portal when a user tries to delete a resource group that is part of an ongoing move.
Kérdés: mit jelent a "MissingMoveDependentResources" hibakód?Question: What does the error code "MissingMoveDependentResources" mean?
Egy erőforrás áthelyezésekor a hozzá tartozó erőforrásoknak léteznie kell a célként megadott erőforráscsoport vagy előfizetés részeként, vagy szerepelniük kell az áthelyezési kérelemben.When moving a resource, its dependent resources must either exist in the destination resource group or subscription, or be included in the move request. A MissingMoveDependentResources hibakód jelenik meg, ha egy függő erőforrás nem felel meg ennek a követelménynek.You get the MissingMoveDependentResources error code when a dependent resource doesn't meet this requirement. A hibaüzenet tartalmazza az áthelyezési kérelemben szerepeltetni kívánt függő erőforrás részleteit.The error message has details about the dependent resource that needs to be included in the move request.
Előfordulhat például, hogy egy virtuális gép áthelyezéséhez hét erőforrás-típust kell áthelyeznie három különböző erőforrás-szolgáltatóval.For example, moving a virtual machine could require moving seven resource types with three different resource providers. Ezek az erőforrás-szolgáltatók és típusok a következők:Those resource providers and types are:
Microsoft.ComputeMicrosoft.Compute
- virtualMachinesvirtualMachines
- lemezekdisks
Microsoft.NetworkMicrosoft.Network
- networkInterfacesnetworkInterfaces
- Nyilvános IPpublicIPAddresses
- networkSecurityGroupsnetworkSecurityGroups
- virtualNetworksvirtualNetworks
Microsoft.StorageMicrosoft.Storage
- storageAccountsstorageAccounts
Egy másik gyakori példa egy virtuális hálózat áthelyezését jelenti.Another common example involves moving a virtual network. Előfordulhat, hogy az adott virtuális hálózathoz kapcsolódó további erőforrásokat kell áthelyeznie.You may have to move several other resources associated with that virtual network. Az áthelyezési kérelemhez nyilvános IP-címeket, útválasztási táblákat, virtuális hálózati átjárókat, hálózati biztonsági csoportokat és másokat is át kell helyezni.The move request could require moving public IP addresses, route tables, virtual network gateways, network security groups, and others.
Kérdés: Miért nem tudok áthelyezni néhány erőforrást az Azure-ban?Question: Why can't I move some resources in Azure?
Jelenleg az Azure-támogatás nem minden erőforrást helyez át.Currently, not all resources in Azure support move. Az áthelyezést támogató erőforrások listáját itt tekintheti meg: a műveletek támogatásának áthelyezése az erőforrásokhoz.For a list of resources that support move, see Move operation support for resources.
Következő lépésekNext steps
Az áthelyezni kívánt erőforrások listáját itt tekintheti meg: a műveletek támogatásának áthelyezése az erőforrásokhoz.For a list of which resources support move, see Move operation support for resources.