[英]Azure Custom Extensions Blob return 403 Forbidden
我嘗試運行自定義腳本以靜默方式將軟件安裝到我的 Windows Scaleset 這是我的配置 Arm 模板添加到 virtualMachineProfile 就像子資源到 ExtensionProfile 這里是代碼
{
"name": "InstallSomeCoolStuffs",
"properties":{
"publisher": "Microsoft.Compute",
"type": "CustomScriptExtension",
"typeHandlerVersion": "1.10",
"autoUpgradeMinorVersion": true,
"settings": {},
"protectedSettings": {
"commandToExecute": "powershell -ExecutionPolicy Unrestricted -File myscript.ps1",
"managedIdentity": {},
"fileUris": ["https://someblob.blob.core.windows.net/src/myscript.ps1"
]
}
}
},
問題是當我嘗試使用啟用的托管標識部署 ARM 模板並將貢獻者角色添加到存儲帳戶時失敗並顯示消息:
"message": "VM has reported a failure when processing extension 'MyScript'. Error message: \"Failed to download all specified files. Exiting. Error Message: The remote server returned an error: (403) Forbidden.\"\r\n\r\nMore information on troubleshooting is available at https://aka.ms/VMExtensionCSEWindowsTroubleshoot "
謝謝!
如果有人遇到同樣的問題,我找到了解決方案。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.