-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SubscriptionNotFound deploying api connections #399
Comments
Please see the Powershell comand window output up until the error: PS C:\Scripts\Powershell\RequestATeamV1.1.0\microsoft-teams-apps-requestateam-1.1.0\Deployment\scripts> ./deploy.ps1 -TenantName "XXX" -TenantID "YYYYYYYY-YYYY-YYYY-YYYY-YYYYYYYYYYYY" -RequestsSiteName "RequestATeamApp" -RequestsSiteDesc "Request a Team App. Used to store Teams Requests" -ManagedPath "sites" -SubscriptionId XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX -Location "uksouth" -ResourceGroupName "XXX-prod-requestateam-rg-01" -AppName "XXX-prod-requestateam-app" -ServiceAccountUPN "" -IsEdu $false -KeyVaultName "XXX-prod-rat-kv-01" -EnableSensitivity $false Security warning DEPLOYMENT SCRIPT STARTED(c) Microsoft Corporation ### Connected to SPO AZURE AD APP CREATIONCreating Azure AD App - 'XXX-prod-requestateam-app'... AZURE AD APP CREATION FINISHEDTEAMS REQUESTS SITE CREATIONCreating Teams Requests SharePoint site... [email protected] AzureCloud YYYYYYYY-YYYY-YYYY-YYYY-YYYYYYYYYYYY XXXX.onmicrosoft.com User REQUESTS SPO SITE CONFIGURATIONConfiguring SharePoint site... AZURE RESOURCES DEPLOYMENTStarting Azure resources deployment... ResourceGroupName : XXX-prod-requestateam-rg-01 Created resource group |
I had the same problem. |
Description
I have run the script and everything seemed to be working until it gets to the Deploying api connections where the following message in red appears:
{"status":"Failed","error":{"code":"DeploymentFailed","target":"/subscriptions/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/resourceGroups/XXX-prod-requestateam-rg-01/providers/Microsoft.Resources/deployments/connections","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":"SubscriptionNotFound","message":"The subscription 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX' could not be found."},{"code":"SubscriptionNotFound","message":"The subscription 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX' could not be found."},{"code":"SubscriptionNotFound","message":"The subscription 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX' could not be found."},{"code":"SubscriptionNotFound","message":"The subscription 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX' could not be found."}]}}
The script does seem to be able to access the subscription so I'm not sure what the problem is.
Steps to reproduce
1.Followed the instructions on running the deploy.ps1 script. I have Global Admin access and have entered that when requested.
2.
3.
Expected results
I expected the script to complete without errors
Actual Results
The Resource group has been created in the subscription
The following has been created in the Resource group:
CheckSiteExists Logic app
keyvault
requestateam-kv api conection
Three deployments in the resource group have also failed possibly due to the original subscription error above :
synclabels
{"code":"DeploymentFailed","target":"/subscriptions/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/resourceGroups/XXX-prod-requestateam-rg-01/providers/Microsoft.Resources/deployments/synclabels","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":"ApiConnectionNotFound","message":"The API connection 'requestateam-spo' could not be found."}]}
processtramrequest
{"code":"DeploymentFailed","target":"/subscriptions/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/resourceGroups/XXX-prod-requestateam-rg-01/providers/Microsoft.Resources/deployments/processteamrequest","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":"MultipleErrorsOccurred","message":"Multiple errors occurred: 'NotFound,NotFound,NotFound,NotFound'."}]}
connections
{"code":"DeploymentFailed","target":"/subscriptions/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/resourceGroups/XXX-prod-requestateam-rg-01/providers/Microsoft.Resources/deployments/connections","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":"SubscriptionNotFound","message":"The subscription 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX' could not be found."},{"code":"SubscriptionNotFound","message":"The subscription 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX' could not be found."},{"code":"SubscriptionNotFound","message":"The subscription 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX' could not be found."},{"code":"SubscriptionNotFound","message":"The subscription 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX' could not be found."}]}
Solution component
Deployment Script
Operating system (environment)
Windows
Additional Info
I am running on Windows 10 and using Powershell V5
The text was updated successfully, but these errors were encountered: