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 Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,435 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,186 questions
0 comments No comments
{count} votes

Accepted answer
  1. Alistair Ross 7,106 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