{"action":"created","issue":{"url":"https://api.github.com/repos/capitalone/cloud-custodian/issues/3140","repository_url":"https://api.github.com/repos/capitalone/cloud-custodian","labels_url":"https://api.github.com/repos/capitalone/cloud-custodian/issues/3140/labels{/name}","comments_url":"https://api.github.com/repos/capitalone/cloud-custodian/issues/3140/comments","events_url":"https://api.github.com/repos/capitalone/cloud-custodian/issues/3140/events","html_url":"https://github.com/capitalone/cloud-custodian/issues/3140","id":380865007,"node_id":"MDU6SXNzdWUzODA4NjUwMDc=","number":3140,"title":"Azure - Resize App service plan - B SKU absent","user":{"login":"jdogg89","id":19252837,"node_id":"MDQ6VXNlcjE5MjUyODM3","avatar_url":"https://avatars0.githubusercontent.com/u/19252837?v=4","gravatar_id":"","url":"https://api.github.com/users/jdogg89","html_url":"https://github.com/jdogg89","followers_url":"https://api.github.com/users/jdogg89/followers","following_url":"https://api.github.com/users/jdogg89/following{/other_user}","gists_url":"https://api.github.com/users/jdogg89/gists{/gist_id}","starred_url":"https://api.github.com/users/jdogg89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdogg89/subscriptions","organizations_url":"https://api.github.com/users/jdogg89/orgs","repos_url":"https://api.github.com/users/jdogg89/repos","events_url":"https://api.github.com/users/jdogg89/events{/privacy}","received_events_url":"https://api.github.com/users/jdogg89/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-11-14T20:05:13Z","updated_at":"2018-11-15T18:43:21Z","closed_at":null,"author_association":"NONE","body":"### Description: \r\nThe Basic (B) tier SKU is absent from the code in appserviceplan.py which was merged in with #3130. Output from a policy run of trying to resize an app service plan currently in B tier results with an error. Is it not possible to resize a B tier? I'm unclear if the tier was intentionally left out of the recently merged code: \r\n\r\n### Output\r\n```\r\n  File \"/virtualenv/lib/python3.7/site-packages/c7n_azure/resources/appserviceplan.py\", line 89, in process_resource_set\r\n    client.app_service_plans.update(plan['resourceGroup'], plan['name'], model)\r\n  File \"/virtualenv/lib/python3.7/site-packages/azure/mgmt/web/operations/app_service_plans_operations.py\", line 465, in update\r\n    raise models.DefaultErrorResponseException(self._deserialize, response)\r\nazure.mgmt.web.models.default_error_response_py3.DefaultErrorResponseException: Operation returned an invalid status code 'Bad Request'\r\n```\r\nAdding in the B tier to the static method and the schema in my pip env still results with the same error: \r\n```    @staticmethod\r\n 92     def lookup_tier(size):\r\n 93         tiers = {\r\n 94             'F': 'Free',\r\n 95             'B': 'Basic',\r\n 95             'S': 'Standard',\r\n 96             'D': 'Shared',\r\n 97             'P': 'Premium'\r\n 98         }\r\n```\r\n```    schema = utils.type_schema(\r\n 64         'resize-plan',\r\n 65         **{\r\n 66             'size': {'type': 'string', 'enum': ['F1', 'B1', 'B2', 'B3', 'D1', 'S1', 'S2', 'S3', 'P1', 'P2', 'P3']},\r\n 67             'count': {'type': 'integer'}\r\n 68         }\r\n 69     )\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/capitalone/cloud-custodian/issues/comments/439147080","html_url":"https://github.com/capitalone/cloud-custodian/issues/3140#issuecomment-439147080","issue_url":"https://api.github.com/repos/capitalone/cloud-custodian/issues/3140","id":439147080,"node_id":"MDEyOklzc3VlQ29tbWVudDQzOTE0NzA4MA==","user":{"login":"jdogg89","id":19252837,"node_id":"MDQ6VXNlcjE5MjUyODM3","avatar_url":"https://avatars0.githubusercontent.com/u/19252837?v=4","gravatar_id":"","url":"https://api.github.com/users/jdogg89","html_url":"https://github.com/jdogg89","followers_url":"https://api.github.com/users/jdogg89/followers","following_url":"https://api.github.com/users/jdogg89/following{/other_user}","gists_url":"https://api.github.com/users/jdogg89/gists{/gist_id}","starred_url":"https://api.github.com/users/jdogg89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdogg89/subscriptions","organizations_url":"https://api.github.com/users/jdogg89/orgs","repos_url":"https://api.github.com/users/jdogg89/repos","events_url":"https://api.github.com/users/jdogg89/events{/privacy}","received_events_url":"https://api.github.com/users/jdogg89/received_events","type":"User","site_admin":false},"created_at":"2018-11-15T18:43:21Z","updated_at":"2018-11-15T18:43:21Z","author_association":"NONE","body":"@stefangordon I think this issue can be closed if you're ok with the fact that we can just get it to work with an ARM template deployment of the ASP. If you're able to make it work with a deployment from the portal or another way and make it work, we can chalk up the non working ways to some quirk on my end."}}
{"actor":{"display_login":"jdogg89"}}