Azure / pcs-cli

A CLI for deploying Azure IoT PCS
MIT License
33 stars 37 forks source link

Resource group and AAD app not cleaned up when deployment failed #410

Closed ashdonaldson14 closed 5 years ago

ashdonaldson14 commented 5 years ago

Type of issue

Description

Failed deployment with no resource group or AAD app cleanup ...

Steps to reproduce

C:\Users\brcaspar\source\pcs-cli>pcs --versionOverride actions-bug-bash --dockerTagOverride testing -s standard -r java ? Enter a solution name: brcaspar-actions-bugbash ? Select a subscription: IOTS ? Select a location: South Central US ? Enter prefix for .azurewebsites.net: brcaspar-actions-bugbash ✓ Application registered: https://portal.azure.com/iotsl.onmicrosoft.com#blade/Microsoft_AAD_IAM/ApplicationBlade/objectId/fe340bb4-77da-4b50-997e-9957bebf460e/appId/7629aaca-1248-4dba-b913-4a13871d0ed2 ✓ Created resource group: https://portal.azure.com/iotsl.onmicrosoft.com#resource/subscriptions/d7ca9718-3a3c-4ce8-8ec9-76a6396c0206/resourceGroups/brcaspar-actions-bugbash ✕ Deployment validation failed: { "code": "LocationNotAvailableForResourceType", "message": "The provided location 'southcentralus' is not available for resource type 'Microsoft.ContainerService/managedClusters'. List of available regions for the resource type is 'eastus,westeurope,centralus,canadacentral,canadaeast,uksouth,westus,westus2,australiaeast,northeurope,japaneast,eastus2,southeastasia,ukwest'." } Error: {"code":"LocationNotAvailableForResourceType","message":"The provided location 'southcentralus' is not available for resource type 'Microsoft.ContainerService/managedClusters'. List of available regions for the resource type is 'eastus,westeurope,centralus,canadacentral,canadaeast,uksouth,westus,westus2,australiaeast,northeurope,japaneast,eastus2,southeastasia,ukwest'."}

Expected behavior

...

Current behavior <!-- The actual behavior observed --

...

Known workarounds

...

Possible solution

...

Context and Environment