azure-samples-python-management icon indicating copy to clipboard operation
azure-samples-python-management copied to clipboard

appservice/manage_app_service_plan use of SkuDescription can be simplified

Open jeking3 opened this issue 5 years ago • 3 comments

https://github.com/Azure-Samples/azure-samples-python-management/blob/2cdb8ba8f3cf7f3a69a221033127bdde735256af/samples/appservice/manage_app_service_plan.py#L44-L50

In testing I found the only property the server interprets is the "name" and all the others are ignored. For example you can ask for a name "F1", tier "Premium", size "B1" and you get an F1.

Related documentation issue: https://github.com/Azure/azure-sdk-for-python/issues/16251

jeking3 avatar Jan 20 '21 15:01 jeking3

@00Kai0 could you take a look at this

nickzhums avatar Jan 20 '21 17:01 nickzhums

Hi @jeking3 , F1 is a free type, so the sku.tier can not be Premium. The service side will determine the type of your request.

All skus you can choose: https://azure.microsoft.com/en-us/pricing/details/app-service/windows/

00Kai0 avatar Jan 21 '21 06:01 00Kai0

Hey @00Kai0 - I think the issue is that the server ignores all other inputs but name, and that the name argument is required. That's fine, so long as the documentation actually indicates that that's the case :) I was hitting this issue repeatedly, and this is the only place online that I could find that has the solution.

m-credera avatar Sep 14 '21 17:09 m-credera