stevebus / unrealdemo

Temporary placeholder (for the Beta) for the Unreal Engine ADT plug-in for Azure Digital Twins
MIT License
3 stars 1 forks source link

Failed Deployment #8

Open kofiasare266 opened 2 years ago

kofiasare266 commented 2 years ago

Hi,

I have followed the steps to recreate the demo Digital Twin in Cloud Shell but the deployment keeps failing. I am not sure if I broke something. Kindly help.

I have placed the code from my PowerShell below:

Requesting a Cloud Shell.Succeeded. Connecting terminal...

Welcome to Azure Cloud Shell

Type "az" to use Azure CLI Type "help" to learn about Cloud Shell

MOTD: Cmdlet help is available: help

VERBOSE: Authenticating to Azure ... VERBOSE: Building your Azure drive ... PS /home/kofi_asare> git clone https://github.com/Azure-Samples/azure-digital-twins-unreal-integration

Cloning into 'azure-digital-twins-unreal-integration'... remote: Enumerating objects: 378, done. remote: Total 378 (delta 0), reused 0 (delta 0), pack-reused 378 Receiving objects: 100% (378/378), 40.76 MiB | 50.35 MiB/s, done. Resolving deltas: 100% (153/153), done. PS /home/kofi_asare> cd azure-digital-twins-unreal-integration PS /home/kofi_asare/azure-digital-twins-unreal-integration> deployment/deploy.ps1

################################################ ################################################

Unreal Engine and Azure Digital Twins

integration demo

################################################ ################################################

Welcome to the Unreal Engine and Azure Digital Twins (ADT) integration demo. This deployment script will help you deploy a sandbox environment in your Azure subscription. This demo leverages the ADT Link plugin, that was created along with this sample demo by WSP in collaboration with Microsoft and Epic Games, in order to demonstrate how to integrate Azure Digital Twins with the Unreal Engine.

Press Enter to continue.

Verifying your Azure CLI installation version...

Great! You are using a supported Azure CLI version.

Verifying 'azure-iot' extension version...

You currently don't have the 'azure-iot' CLI extension. Installing it now...

You are currently using the Azure subscription 'KofiasareADT'. Do you want to keep using it? 1: Yes 2: No. I want to use a different subscription

1: 1

Registering ADT resource provider in your subscription

Choose a region for your deployment from this list (using its Index): 1: Australia East 2: East US 3: East US 2 4: North Europe 5: South Central US 6: Southeast Asia 7: UK South 8: West Europe 9: West US 2

: 3

Provide a name that describes your project. This will be used to create the resource group and the deployment resources.

: Unrealtest

Creating resource group 'Unrealtest-rg'...

Collecting current user information

Creating app registration manifest

Creating app registration 'Unrealtest-rg-ece31eb0' in Azure Active Directory ERROR: unrecognized arguments: --available-to-other-tenants False --reply-urls http://localhost --native-app

Examples from AI knowledge base: az ad app create --display-name mytestapp --optional-claims @manifest.json Create an application with optional claims

az ad app create --display-name mytestapp --identifier-uris https://mytestapp.websites.net --app-roles @manifest.json Create an application with a role

https://docs.microsoft.com/en-US/cli/azure/ad/app#az_ad_app_create Read more about the command in reference docs ERROR: argument --id: expected one argument

Examples from AI knowledge base: az ad app show --id 00000000-0000-0000-0000-000000000000 Get the details of an application. (autogenerated)

https://docs.microsoft.com/en-US/cli/azure/ad/app#az_ad_app_show Read more about the command in reference docs ERROR: argument --id: expected one argument

Examples from AI knowledge base: az ad app show --id 00000000-0000-0000-0000-000000000000 Get the details of an application. (autogenerated)

https://docs.microsoft.com/en-US/cli/azure/ad/app#az_ad_app_show Read more about the command in reference docs ERROR: argument --id: expected one argument

Examples from AI knowledge base: az ad app show --id 00000000-0000-0000-0000-000000000000 Get the details of an application. (autogenerated)

https://docs.microsoft.com/en-US/cli/azure/ad/app#az_ad_app_show Read more about the command in reference docs

Creating service principal associated with the app registration ERROR: argument --id: expected one argument

Examples from AI knowledge base: az ad sp create --id 00000000-0000-0000-0000-000000000000 Create a service principal. (autogenerated)

https://docs.microsoft.com/en-US/cli/azure/ad/sp#az_ad_sp_create Read more about the command in reference docs

Creating client secret for app registration ERROR: argument --id: expected one argument

Examples from AI knowledge base: az ad app credential reset --id 00000000-0000-0000-0000-000000000000 append or overwrite an application's password or certificate credentials (autogenerated)

az ad app credential reset --id 00000000-0000-0000-0000-000000000000 --cert "@~/cert.pem" Append a certificate to the application with the certificate file.

https://docs.microsoft.com/en-US/cli/azure/ad/app/credential#az_ad_app_credential_reset Read more about the command in reference docs

Creating resource group deployment with id 'Unrealtest-ece31eb0' WARNING: /home/kofi_asare/azure-digital-twins-unreal-integration/deployment/azuredeploy.bicep(13,16) : Warning no-loc-expr-outside-params: Use a parameter here instead of 'resourceGroup().location'. 'resourceGroup().location' and 'deployment().location' should only be used as a default value for parameters. [https://aka.ms/bicep/linter/no-loc-expr-outside-params] /home/kofi_asare/azure-digital-twins-unreal-integration/deployment/azuredeploy.bicep(93,5) : Warning no-unnecessary-dependson: Remove unnecessary dependsOn entry 'identity'. [https://aka.ms/bicep/linter/no-unnecessary-dependson] /home/kofi_asare/azure-digital-twins-unreal-integration/deployment/azuredeploy.bicep(330,105) : Warning BCP241: The "providers" function is deprecated and will be removed in a future release of Bicep. Please add a comment to https://github.com/Azure/bicep/issues/2017 if you believe this will impact your workflow. /home/kofi_asare/azure-digital-twins-unreal-integration/deployment/azuredeploy.bicep(356,5) : Warning no-unnecessary-dependson: Remove unnecessary dependsOn entry 'adt'. [https://aka.ms/bicep/linter/no-unnecessary-dependson] /home/kofi_asare/azure-digital-twins-unreal-integration/deployment/azuredeploy.bicep(372,5) : Warning no-unnecessary-dependson: Remove unnecessary dependsOn entry 'funcApp'. [https://aka.ms/bicep/linter/no-unnecessary-dependson] /home/kofi_asare/azure-digital-twins-unreal-integration/deployment/azuredeploy.bicep(386,5) : Warning no-unnecessary-dependson: Remove unnecessary dependsOn entry 'iot'. [https://aka.ms/bicep/linter/no-unnecessary-dependson] /home/kofi_asare/azure-digital-twins-unreal-integration/deployment/azuredeploy.bicep(413,5) : Warning no-unnecessary-dependson: Remove unnecessary dependsOn entry 'eventGridIngestTopic'. [https://aka.ms/bicep/linter/no-unnecessary-dependson] /home/kofi_asare/azure-digital-twins-unreal-integration/deployment/azuredeploy.bicep(461,5) : Warning no-unnecessary-dependson: Remove unnecessary dependsOn entry 'eventGridADTChangeLogTopic'. [https://aka.ms/bicep/linter/no-unnecessary-dependson] /home/kofi_asare/azure-digital-twins-unreal-integration/deployment/azuredeploy.bicep(587,28) : Warning simplify-interpolation: Remove unnecessary string interpolation. [https://aka.ms/bicep/linter/simplify-interpolation] /home/kofi_asare/azure-digital-twins-unreal-integration/deployment/azuredeploy.bicep(589,26) : Warning simplify-interpolation: Remove unnecessary string interpolation. [https://aka.ms/bicep/linter/simplify-interpolation] /home/kofi_asare/azure-digital-twins-unreal-integration/deployment/azuredeploy.bicep(659,5) : Warning no-unnecessary-dependson: Remove unnecessary dependsOn entry 'appserver'. [https://aka.ms/bicep/linter/no-unnecessary-dependson] /home/kofi_asare/azure-digital-twins-unreal-integration/deployment/azuredeploy.bicep(660,5) : Warning no-unnecessary-dependson: Remove unnecessary dependsOn entry 'tsiEnvironment'. [https://aka.ms/bicep/linter/no-unnecessary-dependson] /home/kofi_asare/azure-digital-twins-unreal-integration/deployment/azuredeploy.bicep(671,5) : Warning no-unnecessary-dependson: Remove unnecessary dependsOn entry 'webApp'. [https://aka.ms/bicep/linter/no-unnecessary-dependson] /home/kofi_asare/azure-digital-twins-unreal-integration/deployment/azuredeploy.bicep(699,5) : Warning no-unnecessary-dependson: Remove unnecessary dependsOn entry 'adt'. [https://aka.ms/bicep/linter/no-unnecessary-dependson] /home/kofi_asare/azure-digital-twins-unreal-integration/deployment/azuredeploy.bicep(729,5) : Warning no-unnecessary-dependson: Remove unnecessary dependsOn entry 'adt'. [https://aka.ms/bicep/linter/no-unnecessary-dependson] /home/kofi_asare/azure-digital-twins-unreal-integration/deployment/azuredeploy.bicep(737,13) : Warning outputs-should-not-contain-secrets: Outputs should not contain secrets. Found possible secret: secure parameter 'appRegPassword' [https://aka.ms/bicep/linter/outputs-should-not-contain-secrets]

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/kofi_asare/azure-digital-twins-unreal-integration/deployment/deploy.ps1:456 Line | 456 | throw "Something went wrong with the resourc$script:deployment_output = az deployment group create `