Install-Lab Throws "No registered resource provider found for location"
Description
Sporadically when running Install-Lab, the error occurs. It happens quite rarely, maybe 1 time out of 20. Rerunning the same command then works properly.
Expected behavior
Provisioned VM
Actual behavior
12:06:08|00:00:00|00:00:00.000| Initialization
12:06:08|00:00:00|00:00:00.107| - Host operating system version: 'Microsoft Windows 10 Enterprise, 10.0.19044.0'
12:06:08|00:00:00|00:00:00.112| - Creating new lab definition with name 'SharePointDscDev62'
12:06:08|00:00:00|00:00:00.227| - Location of lab definition files will be 'C:\ProgramData\AutomatedLab/Labs/SharePointDscDev62'
12:06:08|00:00:00|00:00:00.270| - Location of LabSources folder is 'C:\LabSources'
12:06:09|00:00:00|00:00:00.000| - Adding Azure subscription data
12:06:11|00:00:03|00:00:02.214| - Using Azure Subscription 'RND-DEV-SSG_SWEDEN_EVAL_MS_SHP_SE' (f0e0a889-9324-42e1-9db2-f915f5fbd938)
12:06:17|00:00:09|00:00:08.584| - Using Azure Location 'West Europe'
12:06:17|00:00:09|00:00:08.588| - Trying to locate or create default resource group
12:06:21|00:00:13|00:00:12.281| - Querying available vm sizes for Azure location 'West Europe' (using cache)
12:06:26|00:00:18|00:00:00.000| - Looking for Azure LabSources inside subscription 'RND-DEV-SSG_SWEDEN_EVAL_MS_SHP_SE'
12:06:28|00:00:20|00:00:02.048| - Azure LabSources verified / created
12:06:29|00:00:20|00:00:02.765| - Querying available operating system images (using cache)
12:06:30|00:00:21|00:00:03.439| - Azure default resource group name will be 'SharePointDscDev62'
12:06:30|00:00:21|00:00:03.444| - Azure data center location will be 'West Europe'
12:06:30|00:00:21|00:00:03.448| - Finished adding Azure subscription data
12:06:30|00:00:21|00:00:00.000| - Adding Azure machine definition 'swazspfe00'
12:06:30|00:00:21|00:00:00.065| - No virtual networks specified. Creating a network automatically
12:06:30|00:00:22|00:00:00.754| - Creating virtual network with name 'SharePointDscDev62' and address space '192.168.2.1/24'
12:06:31|00:00:22|00:00:00.923| - Done
C:\projects\SharePointDsc-Dev-Infra\src\remote
12:06:31|00:00:22|00:00:01.025| Done
12:06:31|00:00:23|00:00:00.000| Validating lab definition
12:06:36|00:00:27|00:00:04.389| - Success
12:06:36|00:00:28|00:00:04.917| Lab 'SharePointDscDev62' hosted on 'Azure' imported with 1 machines
12:06:42|00:00:34|00:00:10.991| done
12:06:44|00:00:35|00:00:00.000| Creating VMs
12:06:47|00:00:38|00:00:03.003| - Deploying new resource group with template C:\ProgramData\AutomatedLab\Labs\SharePointDscDev62\armtemplate.json
12:06:47|00:00:39|00:00:00.000| - Waiting for all machines to finish installing
12:07:25|00:01:17|00:00:37.983| - Done
New-LabVM : 12:07:25 PM - The deployment '19bca685-f802-4a77-a71c-1b93c582f4cd' failed with error(s). Showing 1 out of
1 error(s).
Status Message: No registered resource provider found for location 'westeurope' and API version '2022-05-01' for type
'networkInterfaces'. The supported api-versions are '2014-12-01-preview, 2015-05-01-preview, 2015-06-15, 2016-03-30,
2016-06-01, 2016-07-01, 2016-08-01, 2016-09-01, 2016-10-01, 2016-11-01, 2016-12-01, 2017-03-01, 2017-04-01,
2017-06-01, 2017-08-01, 2017-09-01, 2017-10-01, 2017-11-01, 2018-01-01, 2018-02-01, 2018-03-01, 2018-04-01,
2018-05-01, 2018-06-01, 2018-07-01, 2018-08-01, 2018-10-01, 2018-11-01, 2018-12-01, 2019-02-01, 2019-04-01,
2019-06-01, 2019-07-01, 2019-08-01, 2019-09-01, 2019-11-01, 2019-12-01, 2020-01-01, 2020-03-01, 2020-04-01,
2020-05-01, 2020-06-01, 2020-07-01, 2020-08-01, 2020-11-01, 2021-01-01, 2021-02-01, 2021-03-01'. The supported
locations are 'westus, eastus, northeurope, westeurope, eastasia, southeastasia, northcentralus, southcentralus,
centralus, eastus2, japaneast, japanwest, brazilsouth, australiaeast, australiasoutheast, centralindia, southindia,
westindia, canadacentral, canadaeast, westcentralus, westus2, ukwest, uksouth, koreacentral, koreasouth,
francecentral, australiacentral, southafricanorth, uaenorth, switzerlandnorth, germanywestcentral, norwayeast,
qatarcentral'. (Code:NoRegisteredProviderFound)
CorrelationId: 2064979c-f272-48ee-aa17-c6705e5ee29e
At C:\Program Files\WindowsPowerShell\Modules\AutomatedLab\5.43.0\AutomatedLab.psm1:891 char:17
+ ... New-LabVM -Name $script:data.Machines -CreateCheckPoints: ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,New-LabVM
Failed to create the Azure machines mentioned in the errors above.
At C:\Program Files\WindowsPowerShell\Modules\AutomatedLab\5.43.0\AutomatedLabVirtualMachines.psm1:124 char:9
+ throw "Failed to create the Azure machines mentioned in the e ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (Failed to creat...e errors above.:String) [], RuntimeException
+ FullyQualifiedErrorId : Failed to create the Azure machines mentioned in the errors above.
Steps to reproduce
$securedPassword = ConvertTo-SecureString $ARM_CLIENT_SECRET -AsPlainText -Force;
$azureCredential = New-Object System.Management.Automation.PSCredential( $ARM_CLIENT_ID, $securedPassword );
Connect-AzAccount -Credential $azureCredential -ServicePrincipal -TenantId $ARM_TENANT_ID | Out-Null;
Select-AzSubscription -SubscriptionId $ARM_SUBSCRIPTION_ID;
$env:AUTOMATEDLAB_TELEMETRY_OPTIN = 'true';
Set-PSFConfig -Module AutomatedLab -Name DoNotPrompt -Value $true;
New-LabDefinition -Name $LabName -DefaultVirtualizationEngine Azure
Add-LabAzureSubscription -DefaultLocationName $AzureDefaultLocation;
Set-LabInstallationCredential -Username Install -Password $AdminPassword
# SharePoint Machine
$azureProperties = $null;
if ($SPFE1Size) {$azureProperties = @{RoleSize = $SPFE1Size}}
Add-LabMachineDefinition -Name $SPFE1Name -AzureProperties $azureProperties -OperatingSystem 'Windows Server 2019 Datacenter (Desktop Experience)'
Install-Lab
Environment details
powershell_support_pack_2022_08_07-12_23_26.zip
PowerShell Version
Name Value
---- -----
PSVersion 5.1.19041.1682
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.19041.1682
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
AutomatedLab components
Name Version
---- -------
AutomatedLab 5.43.0
AutomatedLab.Common 2.2.242
AutomatedLabDefinition 5.43.0
AutomatedLabNotifications 5.43.0
AutomatedLabTest 5.43.0
AutomatedLabUnattended 5.43.0
AutomatedLabWorker 5.43.0
@shurick81 could you please run Install-LabAzureRequiredModule, restart your session and try that again?
Actually, even if I just rerun my script once again, it does not reoccur. So I wonder what I can try exactly here.
Great! In that case, please open a support ticket in the Azure portal. You can find the ARM template being used in C:\ProgramData\AutomatedLab\Labs\NameOfLab. The failed resource group deployment combined with the template being used should be enough for Azure support to figure out what's wrong.
Unfortunately, AutomatedLab cannot handle every possible issue Azure throws at us. Simply retrying the deployment in a loop is not an option, as there could be actual relevant issues that would hinder a deployment. Transient errors with Azure is something that I have learned to live with, as sad as it is.
Hi, I just got a similar error again. To my perception it happens in about 5% of times I install a lab, so it is not that terrible. Now I got one related to networkSecurityGroups instead of networkInterfaces above. Here's the output:
New-LabVM : 12:26:09 PM - The deployment 'ac6625bc-8995-44ed-b13d-625f70e61eea' failed with error(s). Showing 2 out of
2 error(s).
Status Message: No registered resource provider found for location 'westeurope' and API version '2022-05-01' for type
'networkSecurityGroups'. The supported api-versions are '2014-12-01-preview, 2015-05-01-preview, 2015-06-15,
2016-03-30, 2016-06-01, 2016-07-01, 2016-08-01, 2016-09-01, 2016-10-01, 2016-11-01, 2016-12-01, 2017-03-01,
2017-04-01, 2017-06-01, 2017-08-01, 2017-09-01, 2017-10-01, 2017-11-01, 2018-01-01, 2018-02-01, 2018-03-01,
2018-04-01, 2018-05-01, 2018-06-01, 2018-07-01, 2018-08-01, 2018-10-01, 2018-11-01, 2018-12-01, 2019-02-01,
2019-04-01, 2019-06-01, 2019-07-01, 2019-08-01, 2019-09-01, 2019-11-01, 2019-12-01, 2020-01-01, 2020-03-01,
2020-04-01, 2020-05-01, 2020-06-01, 2020-07-01, 2020-08-01, 2020-11-01, 2021-01-01, 2021-02-01, 2021-03-01'. The
supported locations are 'westus, eastus, northeurope, westeurope, eastasia, southeastasia, northcentralus,
southcentralus, centralus, eastus2, japaneast, japanwest, brazilsouth, australiaeast, australiasoutheast,
centralindia, southindia, westindia, canadacentral, canadaeast, westcentralus, westus2, ukwest, uksouth, koreacentral,
koreasouth, francecentral, australiacentral, southafricanorth, uaenorth, switzerlandnorth, germanywestcentral,
norwayeast, qatarcentral'. (Code:NoRegisteredProviderFound)
Status Message: No registered resource provider found for location 'westeurope' and API version '2022-05-01' for type
'publicIPAddresses'. The supported api-versions are '2014-12-01-preview, 2015-05-01-preview, 2015-06-15, 2016-03-30,
2016-06-01, 2016-07-01, 2016-08-01, 2016-09-01, 2016-10-01, 2016-11-01, 2016-12-01, 2017-03-01, 2017-04-01,
2017-06-01, 2017-08-01, 2017-09-01, 2017-10-01, 2017-11-01, 2018-01-01, 2018-02-01, 2018-03-01, 2018-04-01,
2018-05-01, 2018-06-01, 2018-07-01, 2018-08-01, 2018-10-01, 2018-11-01, 2018-12-01, 2019-02-01, 2019-04-01,
2019-06-01, 2019-07-01, 2019-08-01, 2019-09-01, 2019-11-01, 2019-12-01, 2020-01-01, 2020-03-01, 2020-04-01,
2020-05-01, 2020-06-01, 2020-07-01, 2020-08-01, 2020-11-01, 2021-01-01, 2021-02-01, 2021-03-01'. The supported
locations are 'westus, eastus, northeurope, westeurope, eastasia, southeastasia, northcentralus, southcentralus,
centralus, eastus2, japaneast, japanwest, brazilsouth, australiaeast, australiasoutheast, centralindia, southindia,
westindia, canadacentral, canadaeast, westcentralus, westus2, ukwest, uksouth, koreacentral, koreasouth,
francecentral, australiacentral, southafricanorth, uaenorth, switzerlandnorth, germanywestcentral, norwayeast,
qatarcentral'. (Code:NoRegisteredProviderFound)
CorrelationId: d14c8c4c-e185-42e2-af3c-e59f92c94d3c
At C:\Program Files\WindowsPowerShell\Modules\AutomatedLab\5.43.0\AutomatedLab.psm1:891 char:17
+ ... New-LabVM -Name $script:data.Machines -CreateCheckPoints: ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,New-LabVM
Failed to create the Azure machines mentioned in the errors above.
At C:\Program Files\WindowsPowerShell\Modules\AutomatedLab\5.43.0\AutomatedLabVirtualMachines.psm1:124 char:9
+ throw "Failed to create the Azure machines mentioned in the e ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (Failed to creat...e errors above.:String) [], RuntimeException
+ FullyQualifiedErrorId : Failed to create the Azure machines mentioned in the errors above.
Here's the template that I can get from Azure deployment:
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {},
"resources": [
{
"type": "Microsoft.Network/networkSecurityGroups",
"apiVersion": "[providers('Microsoft.Network','networkSecurityGroups').apiVersions[0]]",
"name": "SharePointDscDev002nsg",
"location": "[resourceGroup().location]",
"tags": {
"AutomatedLab": "SharePointDscDev002",
"CreationTime": "2022-08-15 12:25:36"
},
"properties": {
"securityRules": [
{
"properties": {
"sourceAddressPrefixes": [],
"priority": 100,
"sourceAddressPrefix": "*",
"destinationPortRanges": [
"3389",
"5985",
"5986"
],
"direction": "Inbound",
"destinationAddressPrefix": "VirtualNetwork",
"sourcePortRange": "*",
"access": "Allow",
"destinationAddressPrefixes": [],
"protocol": "TCP",
"sourcePortRanges": []
},
"name": "NecessaryPorts"
},
{
"properties": {
"sourceAddressPrefixes": [],
"priority": 101,
"sourceAddressPrefix": "*",
"destinationPortRanges": [
"443"
],
"direction": "Inbound",
"destinationAddressPrefix": "*",
"sourcePortRange": "*",
"access": "Allow",
"destinationAddressPrefixes": [],
"protocol": "TCP",
"sourcePortRanges": []
},
"name": "BastionIn"
},
{
"properties": {
"sourceAddressPrefixes": [],
"priority": 100,
"sourceAddressPrefix": "*",
"destinationPortRanges": [
"443"
],
"direction": "Outbound",
"destinationAddressPrefix": "AzureCloud",
"sourcePortRange": "*",
"access": "Allow",
"destinationAddressPrefixes": [],
"protocol": "TCP",
"sourcePortRanges": []
},
"name": "BastionMgmtOut"
},
{
"properties": {
"sourceAddressPrefixes": [],
"priority": 101,
"sourceAddressPrefix": "*",
"destinationPortRanges": [
"3389",
"22"
],
"direction": "Outbound",
"destinationAddressPrefix": "VirtualNetwork",
"sourcePortRange": "*",
"access": "Allow",
"destinationAddressPrefixes": [],
"protocol": "TCP",
"sourcePortRanges": []
},
"name": "BastionRdsOut"
}
]
}
},
{
"type": "Microsoft.Network/virtualNetworks",
"apiVersion": "[providers('Microsoft.Network','virtualNetworks').apiVersions[0]]",
"name": "SharePointDscDev002",
"location": "[resourceGroup().location]",
"dependsOn": [
"[resourceId('Microsoft.Network/networkSecurityGroups', 'SharePointDscDev002nsg')]"
],
"tags": {
"AutomatedLab": "SharePointDscDev002",
"CreationTime": "2022-08-15 12:25:36"
},
"properties": {
"subnets": [
{
"properties": {
"addressPrefix": "192.168.9.0/24",
"networkSecurityGroup": {
"id": "[resourceId('Microsoft.Network/networkSecurityGroups', 'SharePointDscDev002nsg')]"
}
},
"name": "default"
}
],
"addressSpace": {
"addressPrefixes": [
"192.168.9.0/24"
]
},
"dhcpOptions": {
"dnsServers": []
}
}
},
{
"type": "Microsoft.Network/publicIPAddresses",
"apiVersion": "[providers('Microsoft.Network','publicIPAddresses').apiVersions[0]]",
"name": "SharePointDscDev002SharePointDscDev002lbfrontendip",
"location": "[resourceGroup().location]",
"tags": {
"AutomatedLab": "SharePointDscDev002",
"CreationTime": "2022-08-15 12:25:36"
},
"sku": {
"name": "Standard"
},
"properties": {
"publicIPAllocationMethod": "static",
"dnsSettings": {
"domainNameLabel": "[concat('al-', uniqueString(resourceGroup().id))]"
}
}
},
{
"type": "Microsoft.Network/loadBalancers",
"apiVersion": "[providers('Microsoft.Network','loadBalancers').apiVersions[0]]",
"name": "SharePointDscDev002SharePointDscDev002loadbalancer",
"location": "[resourceGroup().location]",
"dependsOn": [
"[resourceId('Microsoft.Network/publicIPAddresses', 'SharePointDscDev002SharePointDscDev002lbfrontendip')]"
],
"tags": {
"AutomatedLab": "SharePointDscDev002",
"CreationTime": "2022-08-15 12:25:36"
},
"sku": {
"name": "Standard"
},
"properties": {
"frontendIPConfigurations": [
{
"properties": {
"publicIPAddress": {
"id": "[resourceId('Microsoft.Network/publicIPAddresses', 'SharePointDscDev002SharePointDscDev002lbfrontendip')]"
}
},
"name": "SharePointDscDev002SharePointDscDev002lbfrontendconfig"
}
],
"backendAddressPools": [
{
"name": "SharePointDscDev002SharePointDscDev002backendpoolconfig"
}
],
"outboundRules": [
{
"properties": {
"enableTcpReset": true,
"allocatedOutboundPorts": 0,
"idleTimeoutInMinutes": 4,
"backendAddressPool": {
"id": "[concat(resourceId('Microsoft.Network/loadBalancers', 'SharePointDscDev002SharePointDscDev002loadbalancer'), '/backendAddressPools/SharePointDscDev002SharePointDscDev002backendpoolconfig')]"
},
"frontendIPConfigurations": [
{
"id": "[resourceId('Microsoft.Network/loadBalancers/frontendIPConfigurations', 'SharePointDscDev002SharePointDscDev002loadbalancer', 'SharePointDscDev002SharePointDscDev002lbfrontendconfig')]"
}
],
"protocol": "All"
},
"name": "InternetAccess"
}
],
"inboundNatRules": [
{
"properties": {
"frontendIPConfiguration": {
"id": "[resourceId('Microsoft.Network/loadBalancers/frontendIPConfigurations', 'SharePointDscDev002SharePointDscDev002loadbalancer', 'SharePointDscDev002SharePointDscDev002lbfrontendconfig')]"
},
"enableFloatingIP": false,
"backendPort": 3389,
"protocol": "Tcp",
"frontendPort": 5001
},
"name": "swazspfe00rdpin"
},
{
"properties": {
"frontendIPConfiguration": {
"id": "[resourceId('Microsoft.Network/loadBalancers/frontendIPConfigurations', 'SharePointDscDev002SharePointDscDev002loadbalancer', 'SharePointDscDev002SharePointDscDev002lbfrontendconfig')]"
},
"enableFloatingIP": false,
"backendPort": 5985,
"protocol": "Tcp",
"frontendPort": 5002
},
"name": "swazspfe00winrmin"
},
{
"properties": {
"frontendIPConfiguration": {
"id": "[resourceId('Microsoft.Network/loadBalancers/frontendIPConfigurations', 'SharePointDscDev002SharePointDscDev002loadbalancer', 'SharePointDscDev002SharePointDscDev002lbfrontendconfig')]"
},
"enableFloatingIP": false,
"backendPort": 5986,
"protocol": "Tcp",
"frontendPort": 5003
},
"name": "swazspfe00winrmhttpsin"
}
]
}
},
{
"type": "Microsoft.Compute/availabilitySets",
"apiVersion": "[providers('Microsoft.Compute','availabilitySets').apiVersions[0]]",
"name": "SharePointDscDev002",
"location": "[resourceGroup().location]",
"tags": {
"AutomatedLab": "SharePointDscDev002",
"CreationTime": "2022-08-15 12:25:36"
},
"sku": {
"name": "Aligned"
},
"properties": {
"platformFaultDomainCount": 2,
"platformUpdateDomainCount": 2
}
},
{
"type": "Microsoft.Network/networkInterfaces",
"apiVersion": "[providers('Microsoft.Network','networkInterfaces').apiVersions[0]]",
"name": "swazspfe00nic0",
"location": "[resourceGroup().location]",
"dependsOn": [
"[resourceId('Microsoft.Network/virtualNetworks', 'SharePointDscDev002')]",
"[resourceId('Microsoft.Network/loadBalancers', 'SharePointDscDev002SharePointDscDev002loadbalancer')]"
],
"tags": {
"AutomatedLab": "SharePointDscDev002",
"CreationTime": "2022-08-15 12:25:36"
},
"properties": {
"enableAcceleratedNetworking": false,
"ipConfigurations": [
{
"name": "ipconfig1",
"properties": {
"loadBalancerInboundNatRules": [
{
"id": "[concat(resourceId('Microsoft.Network/loadBalancers', 'SharePointDscDev002SharePointDscDev002loadbalancer'),'/inboundNatRules/swazspfe00rdpin')]"
},
{
"id": "[concat(resourceId('Microsoft.Network/loadBalancers', 'SharePointDscDev002SharePointDscDev002loadbalancer'),'/inboundNatRules/swazspfe00winrmin')]"
},
{
"id": "[concat(resourceId('Microsoft.Network/loadBalancers', 'SharePointDscDev002SharePointDscDev002loadbalancer'),'/inboundNatRules/swazspfe00winrmhttpsin')]"
}
],
"loadBalancerBackendAddressPools": [
{
"id": "[concat(resourceId('Microsoft.Network/loadBalancers', 'SharePointDscDev002SharePointDscDev002loadbalancer'), '/backendAddressPools/SharePointDscDev002SharePointDscDev002backendpoolconfig')]"
}
],
"primary": true,
"subnet": {
"id": "[resourceId('Microsoft.Network/virtualNetworks/subnets', 'SharePointDscDev002', 'default')]"
},
"privateIPAllocationMethod": "Static",
"privateIPAddressVersion": "IPv4",
"privateIPAddress": "192.168.9.7"
}
}
],
"enableIPForwarding": false
}
},
{
"type": "Microsoft.Compute/virtualMachines",
"apiVersion": "[providers('Microsoft.Compute','virtualMachines').apiVersions[0]]",
"name": "swazspfe00",
"location": "[resourceGroup().location]",
"dependsOn": [
"[resourceId('Microsoft.Compute/availabilitySets', 'SharePointDscDev002')]",
"[resourceId('Microsoft.Network/networkInterfaces', 'swazspfe00nic0')]"
],
"tags": {
"AutomatedLab": "SharePointDscDev002",
"CreationTime": "2022-08-15 12:25:36"
},
"properties": {
"storageProfile": {
"osDisk": {
"createOption": "FromImage",
"osType": "Windows",
"caching": "ReadWrite"
},
"imageReference": {
"publisher": "MicrosoftWindowsServer",
"version": "latest",
"offer": "WindowsServer",
"sku": "2019-Datacenter"
},
"dataDisks": []
},
"networkProfile": {
"networkInterfaces": [
{
"id": "[resourceId('Microsoft.Network/networkInterfaces', 'swazspfe00nic0')]",
"properties": {
"primary": true
}
}
]
},
"osProfile": {
"allowExtensionOperations": true,
"computerName": "swazspfe00",
"adminUsername": "Install",
"adminPassword": "Somepass1",
"windowsConfiguration": {
"enableAutomaticUpdates": true,
"provisionVMAgent": true,
"winRM": {
"listeners": [
{
"protocol": "Http"
}
]
}
}
},
"hardwareProfile": {
"vmSize": "Standard_D2s_v3"
},
"availabilitySet": {
"id": "[resourceId('Microsoft.Compute/availabilitySets', 'SharePointDscDev002')]"
}
}
}
]
}
I cannot see anything wrong with the template, so I guess you are absolutely right, it is something to discuss with Azure support about. Thanks!
I tested it for a few days with old AutomatedLab 5.43.0 but I could not replicate the issue. I guess MS might have fixed some things or maybe there were temporary/regional issues in Azure deployment engine. Let's hope it does not repeat.