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