Skip to content

DevTestLab API failed due to TooManyPortsRequested #5082

Open
@metacpp

Description

@metacpp

Request Header

PUT /subscriptions/000000000000/resourceGroups/acctestRG-349259011/providers/Microsoft.DevTestLab/labs/acctestlab-349259011/virtualmachines/lab-349259011?api-version=2016-05-15 HTTP/1.1
Host: management.azure.com
User-Agent: Go/go1.11.4 (amd64-darwin) go-autorest/v11.2.8 Azure-SDK-For-Go/v24.0.0 dtl/2016-05-15 Terraform/0.11.9 terraform-provider-azurerm/dev
Content-Length: 764
Content-Type: application/json; charset=utf-8
Accept-Encoding: gzip

Request Body

{
	"location": "eastus",
	"properties": {
		"notes": "Some notes about this Virtual Machine.",
		"osType": "Windows",
		"size": "Standard_B1ms",
		"userName": "exampleuser999",
		"password": "Pa$w0rd1234!",
		"isAuthenticationWithSshKey": false,
		"labSubnetName": "accvnet-349259011Subnet",
		"labVirtualNetworkId": "/subscriptions/000000000000000/resourcegroups/acctestrg-349259011/providers/microsoft.devtestlab/labs/acctestlab-349259011/virtualnetworks/accvnet-349259011",
		"disallowPublicIpAddress": true,
		"galleryImageReference": {
			"offer": "SQL2017-WS2016",
			"publisher": "MicrosoftSQLServer",
			"sku": "Standard",
			"osType": "Windows",
			"version": "latest"
		},
		"networkInterface": {
			"sharedPublicIpAddressConfiguration": {
				"inboundNatRules": []
			}
		},
		"allowClaim": true,
		"storageType": "Standard"
	},
	"tags": {}
}

It's a asynchronous operation, through querying the Operation API, we get below failure message:

{
	"status": "Failed",
	"error": {
		"code": "TooManyPortsRequested",
		"message": "A virtual machine cannot expose more than 150 ports, but 0 ports were requested."
	}
}

Why it's failing here?

Metadata

Metadata

Assignees

Labels

DevtestlabService AttentionWorkflow: This issue is responsible by Azure service team.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions