Azure / azure-rest-api-specs

The source for REST API specifications for Microsoft Azure.
MIT License
2.63k stars 5.07k forks source link

DevTestLab API failed due to `TooManyPortsRequested` #5082

Open metacpp opened 5 years ago

metacpp commented 5 years ago

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?

tombuildsstuff commented 5 years ago

ping @anuchandy :)