redhat-developer / redhat-developer/mapt
[Bug] Location Not Available for Resource Type
Open
Nobody has claimed this yet.
priority/MAJOR
provider/AZURE
size/M
- Dominant language
- Go
- Stars
- 24
- Forks
- 36
- Avg merge
- 6d 13h
- Merged PRs (30d)
- 8
Description
After spot was selected, the instance sometimes still fails to create
Run # Create instance
# Create instance
podman run -d --name windows-create --rm \
-v ${PWD}:/workspace:z \
-e ARM_TENANT_ID=[REDACTED] \
-e ARM_SUBSCRIPTION_ID=[REDACTED] \
-e ARM_CLIENT_ID=[REDACTED] \
-e ARM_CLIENT_SECRET='[REDACTED]' \
quay.io/redhat-developer/mapt:v0.7.4 azure \
windows create \
--project-name 'windows-desktop' \
--backed-url 'file:///workspace' \
--conn-details-output '/workspace' \
--windows-version '10' \
--windows-featurepack '22h2-ent' \
--vmsize 'Standard_D8as_v5' \
--tags project=podman-desktop \
--spot-excluded-regions westindia,centralindia,southindia,australiacentral,australiacentral2,australiaeast,australiasoutheast,southafricanorth,southafricawest \
--spot
# Check logs
podman logs -f windows-create
shell: /usr/bin/bash -e {0}
env:
MAPT_VERSION: v0.7.4
MAPT_IMAGE: quay.io/redhat-developer/mapt
MAPT_EXCLUDED_REGIONS: westindia,centralindia,southindia,australiacentral,australiacentral2,australiaeast,australiasoutheast,southafricanorth,southafricawest
AZURE_VM_SIZE: Standard_D8as_v5
Trying to pull quay.io/redhat-developer/mapt:v0.7.4...
Getting image source signatures
Copying blob sha256:423aa50d6f882899f60a0c9f670b826705bd9d45808fe67d127bb5ea5c75d9a9
Copying blob sha256:d1626b5b9f7a59add02f7c14fb670e63a729a8b70a53b95f56bf7f5ee8dc12d8
Copying blob sha256:0a73aee7e570194d6ace6157d6693b5439c872acf23a01d32c79489f3192264f
Copying blob sha256:966ac451f578482d021d780f0ab03ed369c1898bfddc2e3a9b55c92a7a75d1cd
Copying config sha256:d6cf8c530ae06089db38e6066d83acc6e5dd520ceca3840840a61063f0a8a786
Writing manifest to image destination
3bfed71c46ee2d301124152d6bd4019c646b2374d1d8353f5ffbe272ca3da30f
DEBU running 'mapt azure windows create'
DEBU context initialized for [REDACTED]
DEBU managing stack stackCreateWindowsDesktop-windows-desktop
INFO Updating (stackCreateWindowsDesktop-windows-desktop):
INFO
DEBU Using these VM types for Spot price query: [Standard_D8as_v5]
DEBU SpotResources | where type =~ 'microsoft.compute/skuspotpricehistory/ostype/location' and sku.name in~ ('Standard_D8as_v5') and properties.osType =~ 'windows'| project skuName=tostring(sku.name),osType=tostring(properties.osType),location,latestSpotPriceUSD=todouble(properties.spotPrices[0].priceUSD)| order by latestSpotPriceUSD asc
INFO + pulumi:pulumi:Stack windows-desktop-stackCreateWindowsDesktop-windows-desktop creating (0s)
DEBU spot prices history [{standard_d8as_v5 windows eastus2euap 0.09968} {standard_d8as_v5 windows eastus2 0.09968} {standard_d8as_v5 windows westus3 0.09968} {standard_d8as_v5 windows uksouth 0.09984} {standard_d8as_v5 windows swedencentral 0.10304} {standard_d8as_v5 windows westus2 0.104664} {standard_d8as_v5 windows northcentralus 0.104664} {standard_d8as_v5 windows northeurope 0.10528} {standard_d8as_v5 windows canadaeast 0.10528} {standard_d8as_v5 windows canadacentral 0.10528} {standard_d8as_v5 windows centraluseuap 0.10598} {standard_d8as_v5 windows centralus 0.10598} {standard_d8as_v5 windows koreasouth 0.10696} {standard_d8as_v5 windows italynorth 0.107848} {standard_d8as_v5 windows francecentral 0.10808} {standard_d8as_v5 windows westus 0.10808} {standard_d8as_v5 windows spaincentral 0.10808} {standard_d8as_v5 windows westcentralus 0.10934} {standard_d8as_v5 windows southcentralus 0.10934} {standard_d8as_v5 windows eastus 0.109648} {standard_d8as_v5 windows germanywestcentral 0.10976} {standard_d8as_v5 windows ukwest 0.10976} {standard_d8as_v5 windows koreacentral 0.11088} {standard_d8as_v5 windows uaenorth 0.11088} {standard_d8as_v5 windows qatarcentral 0.11088} {standard_d8as_v5 windows southeastasia 0.112} {standard_d8as_v5 windows japaneast 0.11424} {standard_d8as_v5 windows japanwest 0.11424} {standard_d8as_v5 windows westeurope 0.115248} {standard_d8as_v5 windows polandcentral 0.11564} {standard_d8as_v5 windows eastasia 0.11816} {standard_d8as_v5 windows swedensouth 0.11844} {standard_d8as_v5 windows norwayeast 0.1204} {standard_d8as_v5 windows switzerlandnorth 0.1204} {standard_d8as_v5 windows francesouth 0.12502} {standard_d8as_v5 windows germanynorth 0.12726} {standard_d8as_v5 windows uaecentral 0.12866} {standard_d8as_v5 windows brazilsouth 0.1288} {standard_d8as_v5 windows switzerlandwest 0.14098} {standard_d8as_v5 windows norwaywest 0.14098} {standard_d8as_v5 windows mexicocentral 0.1492} {standard_d8as_v5 windows brazilsoutheast 0.15204} {standard_d8as_v5 windows malaysiasouth 0.16} {standard_d8as_v5 windows taiwannorth 0.16}]
DEBU SpotResources | where type =~ 'microsoft.compute/skuspotevictionrate/location' and sku.name in~ ('Standard_D8as_v5')| project skuName=tostring(sku.name),location,spotEvictionRate=tostring(properties.evictionRate)
DEBU Best spot price option found: &{standard_d8as_v5 switzerlandwest 0.14098}
INFO @ updating....
INFO + pulumi:pulumi:Stack windows-desktop-stackCreateWindowsDesktop-windows-desktop creating (1s) Downloading provider: azure-native
INFO @ updating.....
INFO + pulumi:pulumi:Stack windows-desktop-stackCreateWindowsDesktop-windows-desktop creating (3s) Downloading provider: random
INFO + azure-native:resources:ResourceGroup windows-desktop-awd-rg creating (0s)
INFO @ updating....
INFO + pulumi:pulumi:Stack windows-desktop-stackCreateWindowsDesktop-windows-desktop creating (4s) Downloading provider: tls
INFO @ updating....
INFO + random:index:RandomPassword windows-desktop-awd-pswd-adminuser creating (0s)
INFO + tls:index:PrivateKey windows-desktop-awd-privatekey-user creating (0s)
INFO + random:index:RandomPassword windows-desktop-awd-pswd-user creating (0s)
INFO + random:index:RandomPassword windows-desktop-awd-pswd-user created (0.07s)
INFO + random:index:RandomPassword windows-desktop-awd-pswd-adminuser created (0.09s)
INFO @ updating.....
INFO + tls:index:PrivateKey windows-desktop-awd-privatekey-user created (2s)
INFO + azure-native:resources:ResourceGroup windows-desktop-awd-rg created (3s)
INFO + azure-native:storage:StorageAccount windows-desktop-awd-sa creating (0s)
INFO + azure-native:network:PublicIPAddress windows-desktop-awd-pip creating (0s)
INFO + azure-native:network:VirtualNetwork windows-desktop-awd-vn creating (0s)
INFO @ updating....
INFO + azure-native:storage:StorageAccount windows-desktop-awd-sa creating (1s) error: PUT https://management.azure.com/subscriptions/[REDACTED]/resourceGroups/[REDACTED]/providers/Microsoft.Storage/storageAccounts/[REDACTED]
INFO + azure-native:storage:StorageAccount windows-desktop-awd-sa **creating failed** error: PUT https://management.azure.com/subscriptions/[REDACTED]/resourceGroups/[REDACTED]/providers/Microsoft.Storage/storageAccounts/[REDACTED]
INFO @ updating.........
INFO + azure-native:network:PublicIPAddress windows-desktop-awd-pip created (7s)
INFO @ updating..............
INFO + azure-native:network:VirtualNetwork windows-desktop-awd-vn created (18s)
INFO + pulumi:pulumi:Stack windows-desktop-stackCreateWindowsDesktop-windows-desktop creating (25s) error: update failed
INFO + pulumi:pulumi:Stack windows-desktop-stackCreateWindowsDesktop-windows-desktop **creating failed** 1 error; 3 messages
INFO Diagnostics:
INFO pulumi:pulumi:Stack (windows-desktop-stackCreateWindowsDesktop-windows-desktop):
INFO Downloading provider: azure-native
INFO Downloading provider: random
INFO Downloading provider: tls
INFO error: update failed
INFO
INFO azure-native:storage:StorageAccount (windows-desktop-awd-sa):
INFO error: PUT https://management.azure.com/subscriptions/[REDACTED]/resourceGroups/[REDACTED]/providers/Microsoft.Storage/storageAccounts/[REDACTED]
INFO --------------------------------------------------------------------------------
INFO RESPONSE 400: 400 Bad Request
INFO ERROR CODE: LocationNotAvailableForResourceType
INFO --------------------------------------------------------------------------------
INFO {
INFO "error": {
INFO "code": "LocationNotAvailableForResourceType",
INFO "message": "The provided location 'switzerlandwest' is not available for resource type 'Microsoft.Storage/storageAccounts'. List of available regions for the resource type is 'eastus,eastus2,westus,westeurope,eastasia,southeastasia,japaneast,japanwest,northcentralus,southcentralus,centralus,northeurope,brazilsouth,australiaeast,australiasoutheast,southindia,centralindia,westindia,canadaeast,canadacentral,westus2,westcentralus,uksouth,ukwest,koreacentral,koreasouth,francecentral,australiacentral,southafricanorth,uaenorth,switzerlandnorth,germanywestcentral,norwayeast,westus3,jioindiawest,swedencentral,qatarcentral,polandcentral,italynorth,israelcentral,mexicocentral,spaincentral,newzealandnorth'."
INFO }
INFO }
INFO --------------------------------------------------------------------------------
INFO
INFO Resources:
INFO + 7 created
INFO
INFO Duration: 26s
INFO
ERRO failed to run update: exit status 255
code: 255
stdout: Updating (stackCreateWindowsDesktop-windows-desktop):
+ pulumi:pulumi:Stack windows-desktop-stackCreateWindowsDesktop-windows-desktop creating (0s)
@ updating....
+ pulumi:pulumi:Stack windows-desktop-stackCreateWindowsDesktop-windows-desktop creating (1s) Downloading provider: azure-native
@ updating.....
+ pulumi:pulumi:Stack windows-desktop-stackCreateWindowsDesktop-windows-desktop creating (3s) Downloading provider: random
+ azure-native:resources:ResourceGroup windows-desktop-awd-rg creating (0s)
@ updating....
+ pulumi:pulumi:Stack windows-desktop-stackCreateWindowsDesktop-windows-desktop creating (4s) Downloading provider: tls
@ updating....
+ random:index:RandomPassword windows-desktop-awd-pswd-adminuser creating (0s)
+ tls:index:PrivateKey windows-desktop-awd-privatekey-user creating (0s)
+ random:index:RandomPassword windows-desktop-awd-pswd-user creating (0s)
+ random:index:RandomPassword windows-desktop-awd-pswd-user created (0.07s)
+ random:index:RandomPassword windows-desktop-awd-pswd-adminuser created (0.09s)
@ updating.....
+ tls:index:PrivateKey windows-desktop-awd-privatekey-user created (2s)
+ azure-native:resources:ResourceGroup windows-desktop-awd-rg created (3s)
+ azure-native:storage:StorageAccount windows-desktop-awd-sa creating (0s)
+ azure-native:network:PublicIPAddress windows-desktop-awd-pip creating (0s)
+ azure-native:network:VirtualNetwork windows-desktop-awd-vn creating (0s)
@ updating....
+ azure-native:storage:StorageAccount windows-desktop-awd-sa creating (1s) error: PUT https://management.azure.com/subscriptions/[REDACTED]/resourceGroups/[REDACTED]/providers/Microsoft.Storage/storageAccounts/[REDACTED]
+ azure-native:storage:StorageAccount windows-desktop-awd-sa **creating failed** error: PUT https://management.azure.com/subscriptions/[REDACTED]/resourceGroups/[REDACTED]/providers/Microsoft.Storage/storageAccounts/[REDACTED]
@ updating.........
+ azure-native:network:PublicIPAddress windows-desktop-awd-pip created (7s)
@ updating..............
+ azure-native:network:VirtualNetwork windows-desktop-awd-vn created (18s)
+ pulumi:pulumi:Stack windows-desktop-stackCreateWindowsDesktop-windows-desktop creating (25s) error: update failed
+ pulumi:pulumi:Stack windows-desktop-stackCreateWindowsDesktop-windows-desktop **creating failed** 1 error; 3 messages
Diagnostics:
pulumi:pulumi:Stack (windows-desktop-stackCreateWindowsDesktop-windows-desktop):
Downloading provider: azure-native
Downloading provider: random
Downloading provider: tls
error: update failed
azure-native:storage:StorageAccount (windows-desktop-awd-sa):
error: PUT https://management.azure.com/subscriptions/[REDACTED]/resourceGroups/[REDACTED]/providers/Microsoft.Storage/storageAccounts/[REDACTED]
--------------------------------------------------------------------------------
RESPONSE 400: 400 Bad Request
ERROR CODE: LocationNotAvailableForResourceType
--------------------------------------------------------------------------------
{
"error": {
"code": "LocationNotAvailableForResourceType",
"message": "The provided location 'switzerlandwest' is not available for resource type 'Microsoft.Storage/storageAccounts'. List of available regions for the resource type is 'eastus,eastus2,westus,westeurope,eastasia,southeastasia,japaneast,japanwest,northcentralus,southcentralus,centralus,northeurope,brazilsouth,australiaeast,australiasoutheast,southindia,centralindia,westindia,canadaeast,canadacentral,westus2,westcentralus,uksouth,ukwest,koreacentral,koreasouth,francecentral,australiacentral,southafricanorth,uaenorth,switzerlandnorth,germanywestcentral,norwayeast,westus3,jioindiawest,swedencentral,qatarcentral,polandcentral,italynorth,israelcentral,mexicocentral,spaincentral,newzealandnorth'."
}
}
--------------------------------------------------------------------------------
Resources:
+ 7 created
Duration: 26s
stderr:
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure with the shown mapt azure windows create command and inspect the spot-region selection alongside the Azure StorageAccount error. The fix is complete when the chosen region supports all required resource types, including Microsoft.Storage/storageAccounts, and the Windows instance creation succeeds.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, go
- Domain
- cloud, infrastructure
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100