Cannot see files that I have created in the Azure Portal

Sid 21 Reputation points
2022-11-10T07:53:11.43+00:00

Hi all, I used git clone when the Azure powershell was open but there were issues. Now I want to delete the cloned directory but I cannot figure out how to view it. When I use cd in the powershell, I can see the directory but I cannot figure out how to locate and remove the directory using the azure portal.. please help, this work is urgent.

To be more precise, I was following this tutorial and encountered the following error:

Tut: https://github.com/Azure-Samples/azure-digital-twins-unreal-integration/blob/main/docs/deploy-azure-resources.md

Error:

ERROR: {"code": "InvalidDeploymentParameterValue", "message": "The value of deployment parameter 'servicePrincipalObjectId' is null. Please specify the value or use the parameter reference. See https://aka.ms/resource-manager-parameter-files for details."}
Exception: /home/siddharth/azure-digital-twins-unreal-integration/deployment/deploy.ps1:456
Line |
456 | throw "Something went wrong with the resource group deploymen …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Something went wrong with the resource group deployment. Ending script.

Please suggest a solution if anyone else has tried something similar...

Windows for business | Windows Server | User experience | PowerShell
Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments
{count} votes

Accepted answer
  1. Alistair Ross 7,466 Reputation points Microsoft Employee
    2022-11-10T10:29:46.26+00:00

    Hi @Sid

    Reading your problem statement, you want to delete the directory "azure-digital-twins-unreal-integration". If this is the case you need to:

    1. Open the Azure Cloud Shell
    2. Navigate to your home directory
    PS /home> cd $home  
    
    1. Check the directory exists

    PS/home/alistair> dir

        Directory: /home/alistair  
    
    UnixMode   User             Group                 LastWriteTime           Size Name  
    --------   ----             -----                 -------------           ---- ----  
    drwxr-xr-x alistair         alistair           11/10/2022 10:11           4096 azure-digital-twins-unreal-integration  
    lrwxrwxrwx alistair         alistair           11/10/2022 10:10             22 clouddrive -> /usr/csuser/clouddrive  
    

    4. Remove the directory and check again

    PS /home/alistair> Remove-Item -Path ./azure-digital-twins-unreal-integration/ -Recurse -Force

    PS /home/alistair> dir  
    
    Directory: /home/alistair  
    
    UnixMode   User             Group                 LastWriteTime           Size Name  
    --------   ----             -----                 -------------           ---- ----  
    lrwxrwxrwx alistair         alistair           11/10/2022 10:10             22 clouddrive -> /usr/csuser/clouddrive  
    

    With regards to your other error "The value of deployment parameter 'servicePrincipalObjectId'", the deployment script creates an Azure AD App Registration and Service Principal, therefore you need to ensure that the account running the script has sufficient permissions to perform this action.

    I hope this helps provide you with the information you need. If it does, please make sure to mark the question as answered so it helps other people in future.

    Kind Regards

    Alistair

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.