Azure-Samples / azure-digital-twins-unreal-integration

Sample project demonstrating the Unreal Engine plug-in for Azure Digital Twins
https://www.unrealengine.com/marketplace/en-US/product/adtlink-for-unreal-engine
MIT License
96 stars 44 forks source link

Unable to deploy the resources #12

Open Ron-Dong opened 2 years ago

Ron-Dong commented 2 years ago

Please provide us with the following information:

This issue is for a: (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Any log messages given by the failure

Expected/desired behavior

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)

Versions

Mention any other details that might be useful

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

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...

Great! You are using a supported version of the extension 'azure-iot'.

Retrieving your current Azure subscription...

You are currently using the Azure subscription 'Azure subscription 1'. 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

: 2

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

: demo3

Resource group 'demo3-rg' already exists in current subscription.

Collecting current user information

Creating app registration manifest

Creating app registration 'demo3-rg-8f63ae8c' 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 'demo3-8f63ae8c' WARNING: /home/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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 'tenantId' is null. Please specify the value or use the parameter reference. See https://aka.ms/resource-manager-parameter-files for details."} Exception: /home/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.


Thanks! We'll be in touch soon.

jaredholloway94 commented 2 years ago

@Ron-Dong try rerunning with the ../deploy.ps1 in my pull request #14

adamlash commented 2 years ago

Hey There,

I have recently made some major changes fixing up a few bugs and issues related to this repo. Feel free to try this again and see if you get the expected outputs.

If there's no reply in 1 week, I'll close off this issue. But feel free to open a new one and I'll get to it ASAP.