microsoftarchive / Learn-LTI

Access the Microsoft Learn http://docs.microsoft.com/learn Catalog of Learning Paths and Modules directly from your Learning Management Systems using the Microsoft Learn LTI application
https://microsoft.github.io/Learn-LTI/
MIT License
129 stars 52 forks source link

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

Open Hugo-Gerryts opened 1 year ago

Hugo-Gerryts commented 1 year ago

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

image

leestott commented 1 year ago

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 commented 1 year ago

Hi there

Correct version, as per prerequisites, installed

@.***

Hugo

From: Lee Stott @.> Sent: Monday, 15 May 2023 11:52 To: microsoft/Learn-LTI @.> Cc: Hugo Gerryts @.>; Author @.> Subject: Re: [microsoft/Learn-LTI] Steps 6 fails - Can not perform requested operation on nested resource (Issue #240)

You don't often get email from @.**@.>. Learn why this is importanthttps://aka.ms/LearnAboutSenderIdentification

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

— Reply to this email directly, view it on GitHubhttps://github.com/microsoft/Learn-LTI/issues/240#issuecomment-1547538202, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A7TMCFSGUBB37INM2MOWZ3TXGH4FRANCNFSM6AAAAAAX6BE7UI. You are receiving this because you authored the thread.Message ID: @.**@.>>



Tshwane University of Technology

This email is sent and received in terms of the Electronic Communications Policy of Tshwane University of Technology. In line with this policy, this email is private, privileged and confidential. The full text of the Electronic Mail Disclaimer can be seen on the TUT web site at https://www.tut.ac.za/other/disclaimers/electronic-mail-disclaimer or obtained by phoning (012) 382-5911

Hugo-Gerryts commented 1 year ago

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.