Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

Steps 6 fails - Can not perform requested operation on nested resource #240

Open
Hugo-Gerryts opened this issue May 11, 2023 · 3 comments
Open

Comments

@Hugo-Gerryts
Copy link

My account is Global Admin and owner of Subscription (must I maybe be a contributor as well ??)
Running install from Windows 10 VM with all prerequisites installed

Step 6 throws out following error and exists. Any help would be appreciated

ERROR: {"status":"Failed","error":{"code":"DeploymentFailed","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.","details":[{"code":"NotFound","message":"{\r\n "error": {\r\n "code": "ParentResourceNotFound",\r\n "message": "Can not perform requested operation on nested resource. Parent resource 'kv-3zqwj2edt' not found."\r\n }\r\n}"},{"code":"BadRequest","message":"{\r\n "error": {\r\n "code": "BadRequest",\r\n "message": "Invalid value found at accessPolicies[0].ObjectId: "\r\n }\r\n}"}]}}
Transcript stopped, output file is C:\Learn-LTI\deployment\Log\Transcript-11-05-2023-11-31-45.log
Press any Key to Exit:
Encountered an Error while deploying to Azure
At C:\Learn-LTI\deployment\Deploy.ps1:237 char:13

  •         throw "Encountered an Error while deploying to Azure"
    
  •         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : OperationStopped: (Encountered an ...loying to Azure:String) [], RuntimeException
    • FullyQualifiedErrorId : Encountered an Error while deploying to Azure

image

@leestott
Copy link
Contributor

Please ensure your using the specificed version of Azure CLI the error above looks like a issue called specifics in the ARM template.

@Hugo-Gerryts
Copy link
Author

Hugo-Gerryts commented May 15, 2023 via email

@Hugo-Gerryts
Copy link
Author

Hi

Found a solution.
Firstly get the "Object ID" of the Azure account being used (that is owner of subscription).

image

Now change the Deploy.ps1 file as follows (NOTE: remove quotes in front of line, had to add them otherwise the # forces line to display in Bold BIG letters)
"# Original line
"# $userObjectId = az ad signed-in-user show --query id
"# Suggested solution also doesn’t work
"# $userObjectId = az ad signed-in-user show --query objectId
"# Get the “Object ID” of account being used. Change line to
"$userObjectId = “XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX”

Thanks for help from some Microsoft parties. Will now close this issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants