set-azurermvmcustomextension无法对嵌套资源执行操作 [英] set-azurermvmcustomextension cannot perform operation on nested resource
问题描述
我正在用ARM模板创建的VM内执行set-azurermvmcustomextension命令.
i am executing the set-azurermvmcustomextension command inside a VM which is created with an ARM template.
因此VM存在.
我还尝试在云计算Powershell中执行命令,但存在相同的错误.
i also tried to executed the command in the cloud powershell but the same error.
该错误表明VM不存在,但是它确实存在.
the error suggests that the VM isn't there but it is of course.
我在做什么错?.
Set-AzureRmVMCustomScriptExtension-位置西欧" -ResourceGroupName Automation-rg -VMName"tja" -名称探测器-StorageAccountName infieldautomation-文件名deployad.ps1-容器名称自动化容器-运行deployad.ps1
Set-AzureRmVMCustomScriptExtension:无法对嵌套资源执行请求的操作.找不到父资源"tja".
错误代码:ParentResourceNotFound
错误消息:无法对嵌套资源执行请求的操作.找不到父资源"tja".
状态码:404
ReasonPhrase:未找到
OperationID:e6337823-c3a4-465b-ad65-2db0838f7e27
在第1行:char:1
+ Set-AzureRmVMCustomScriptExtension-位置西欧" -ResourceG ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~
+ CategoryInfo   ;: CloseError:(:) [Set-AzureRmVMCustomScriptExtension],ComputeCloudException
+ FullyQualifiedErrorId:Microsoft.Azure.Commands.Compute.SetAzureVMCustomScriptExtensionCommand
Set-AzureRmVMCustomScriptExtension -location "West Europe" -ResourceGroupName automation-rg -VMName "tja" -Name probeer -StorageAccountName infieldautomation -FileName deployad.ps1 -ContainerName automation-container -run deployad.ps1
Set-AzureRmVMCustomScriptExtension : Can not perform requested operation on nested resource. Parent resource 'tja' not found.
ErrorCode: ParentResourceNotFound
ErrorMessage: Can not perform requested operation on nested resource. Parent resource 'tja' not found.
StatusCode: 404
ReasonPhrase: Not Found
OperationID : e6337823-c3a4-465b-ad65-2db0838f7e27
At line:1 char:1
+ Set-AzureRmVMCustomScriptExtension -location "West Europe" -ResourceG ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : CloseError: (:) [Set-AzureRmVMCustomScriptExtension], ComputeCloudException
+ FullyQualifiedErrorId : Microsoft.Azure.Commands.Compute.SetAzureVMCustomScriptExtensionCommand
推荐答案
链接以获取资源管理器中父资源错误的故障排除指南.
I suggest you check this link for troubleshooting guide on parent resource error in the resource manager.
------------------------------------------------- ---------------------------------------------
如果此答案有帮助,请单击标记为答案"或上投票".提供其他反馈 在您的论坛体验中,点击
If this answer was helpful, click "Mark as Answer" or "Up-Vote". To provide additional feedback on your forum experience, click here
这篇关于set-azurermvmcustomextension无法对嵌套资源执行操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!