Skip to content

SubscriptionNotFound deploying api connections #399

@barabetto

Description

@barabetto

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working🔍 needs triageIssued needs triaging

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions