This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Subscription not found issue with GenerateResourcesAndImage #6162
Labels
You can continue the conversation there. Go to discussion →
Description
I've recently had troubles running the scripts specifically the GenerateResourcesAndImage, the result is with an error saying it is unable to find the Subscription however it will create the resource group but it will not create the storage account to hold the resources. I've had this working in a different subscription but not in a subscription I just created to isolate all the build images. The new subscription has the proper IAM roles and I've tried creating a app registration thinking there was an access issue but it didn't work.
I'm also running this script locally in windows/powershell and have had it working but when switching the target subscription I receive errors.
Below is the command I run.
GenerateResourcesAndImage -SubscriptionId {SubscriptionID} -ResourceGroupName "rg-st-ubuntu-eastus" -ImageGenerationRepositoryRoot "$pwd" -ImageType Ubuntu2004 -AzureLocation "East US" -AzureClientId {AzureClientId} -AzureClientSecret {AzureClientSecret} -AzureTenantId {AzureTenantId }
This is the output that I get
Name : DevOps Pipelines {IDs}
Account : {SubsAccount}
Environment : AzureCloud
Subscription : {SubscriptionID}
Tenant : {TenantID}
TokenCache :
VersionProfile :
ExtendedProperties : {}
ResourceGroupName : rg-st-ubuntu-eastus
Location : eastus
ProvisioningState : Succeeded
Tags :
TagsTable :
ResourceId : /subscriptions/{SubscriptionID}/resourceGroups/rg-st-ubuntu-eastus
ManagedBy :
Delete Resource Group
The resource group you specified already exists. Do you want to clean it up?
[Y] Yes [N] No [S] Stop [?] Help (default is "Y"): N
GenerateResourcesAndImage : Subscription {SubscriptionID} was not found.
At line:1 char:1
Platforms affected
Virtual environments affected
Image version and build link
I'm using the latest from master
Is it regression?
No
Expected behavior
To be able to generate the resources and images.
Actual behavior
Erroring out right after the resource group is created.
Repro steps
The text was updated successfully, but these errors were encountered: