{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/azure-powershell/issues/4309","repository_url":"https://api.github.com/repos/Azure/azure-powershell","labels_url":"https://api.github.com/repos/Azure/azure-powershell/issues/4309/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-powershell/issues/4309/comments","events_url":"https://api.github.com/repos/Azure/azure-powershell/issues/4309/events","html_url":"https://github.com/Azure/azure-powershell/issues/4309","id":242627121,"number":4309,"title":"Powershell update 11.07.2017 cannot create managed disk","user":{"login":"cadumi","id":22836032,"avatar_url":"https://avatars2.githubusercontent.com/u/22836032?v=4","gravatar_id":"","url":"https://api.github.com/users/cadumi","html_url":"https://github.com/cadumi","followers_url":"https://api.github.com/users/cadumi/followers","following_url":"https://api.github.com/users/cadumi/following{/other_user}","gists_url":"https://api.github.com/users/cadumi/gists{/gist_id}","starred_url":"https://api.github.com/users/cadumi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cadumi/subscriptions","organizations_url":"https://api.github.com/users/cadumi/orgs","repos_url":"https://api.github.com/users/cadumi/repos","events_url":"https://api.github.com/users/cadumi/events{/privacy}","received_events_url":"https://api.github.com/users/cadumi/received_events","type":"User","site_admin":false},"labels":[{"id":212033510,"url":"https://api.github.com/repos/Azure/azure-powershell/labels/Compute","name":"Compute","color":"dddddd","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/Azure/azure-powershell/milestones/26","html_url":"https://github.com/Azure/azure-powershell/milestone/26","labels_url":"https://api.github.com/repos/Azure/azure-powershell/milestones/26/labels","id":2516091,"number":26,"title":"August 2017","description":"Code complete 8/2; Shipping 8/9","creator":{"login":"markcowl","id":1054056,"avatar_url":"https://avatars1.githubusercontent.com/u/1054056?v=4","gravatar_id":"","url":"https://api.github.com/users/markcowl","html_url":"https://github.com/markcowl","followers_url":"https://api.github.com/users/markcowl/followers","following_url":"https://api.github.com/users/markcowl/following{/other_user}","gists_url":"https://api.github.com/users/markcowl/gists{/gist_id}","starred_url":"https://api.github.com/users/markcowl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markcowl/subscriptions","organizations_url":"https://api.github.com/users/markcowl/orgs","repos_url":"https://api.github.com/users/markcowl/repos","events_url":"https://api.github.com/users/markcowl/events{/privacy}","received_events_url":"https://api.github.com/users/markcowl/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":19,"state":"closed","created_at":"2017-05-11T20:19:33Z","updated_at":"2017-09-07T17:59:34Z","due_on":"2017-08-02T07:00:00Z","closed_at":"2017-08-24T22:16:05Z"},"comments":4,"created_at":"2017-07-13T08:42:04Z","updated_at":"2017-09-28T11:11:03Z","closed_at":null,"author_association":"NONE","body":"### Cmdlet(s)\r\nNew-AzureRmDisk\r\n\r\n### PowerShell Version\r\nInstructions: to get PowerShell version, type `$PSVersionTable` and look for the value associated with `PSVersion`\r\n\r\nName                           Value                                                                                                                                                                \r\n----                           -----                                                                                                                                                                \r\nPSVersion                      5.1.15063.483                                                                                                                                                        \r\nPSEdition                      Desktop                                                                                                                                                              \r\nPSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}                                                                                                                                              \r\nBuildVersion                   10.0.15063.483                                                                                                                                                       \r\nCLRVersion                     4.0.30319.42000                                                                                                                                                      \r\nWSManStackVersion              3.0                                                                                                                                                                  \r\nPSRemotingProtocolVersion      2.3                                                                                                                                                                  \r\nSerializationVersion           1.1.0.1\r\n\r\n\r\n### Module Version\r\nCmdlet          New-AzureRmDisk                                    3.2.0      AzureRM.Compute\r\nCmdlet          New-AzureRmDiskConfig                              3.2.0      AzureRM.Compute\r\n\r\n### OS Version\r\nWindows 10\r\n\r\n### Description\r\nSince the update to the latest PS version released on 11.07 the below error is received when trying to create a managed disk using powershell\r\n\r\n### Debug Output\r\nInstructions: to get Debug Output, set `$DebugPreference=\"Continue\"` and then execute the cmdlet or script causing the issue\r\n\r\nPS C:\\Users\\cadumi> C:\\Temp\\Cases\\Scripts\\create managed disk.ps1\r\nDEBUG: 10:39:37 AM - NewAzureRmDiskConfigCommand begin processing with ParameterSet '__AllParameterSets'.\r\nDEBUG: 10:39:37 AM - using account id 'cadumi@microsoft.com'...\r\nDEBUG: AzureQoSEvent: CommandName - New-AzureRmDiskConfig; IsSuccess - True; Duration - 00:00:00.0278850; Exception - ;\r\nDEBUG: Finish sending metric.\r\nDEBUG: 10:39:38 AM - NewAzureRmDiskConfigCommand end processing.\r\nDEBUG: 10:39:38 AM - NewAzureRmDiskConfigCommand end processing.\r\nDEBUG: 10:39:38 AM - NewAzureRmDisk begin processing with ParameterSet 'DefaultParameter'.\r\nDEBUG: 10:39:38 AM - using account id 'cadumi@microsoft.com'...\r\nDEBUG: [Common.Authentication]: Authenticating using Account: 'cadumi@microsoft.com', environment: 'AzureCloud', tenant: '72f988bf-86f1-41af-91ab-2d7cd011db47'\r\nDEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 : \r\nDEBUG: 07/13/2017 08:39:38: ac788e95-a652-40b4-a208-558b6742119a - AcquireTokenHandlerBase: === Token Acquisition started:\r\n\tAuthority: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/\r\n\tResource: https://management.core.windows.net/\r\n\tClientId: 1950a258-227b-4e31-a9cf-717495945fc2\r\n\tCacheType: Microsoft.Azure.Commands.Common.Authentication.ProtectedFileTokenCache (3 items)\r\n\tAuthentication Target: User\r\n\t\r\n\r\nDEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 : \r\nDEBUG: 07/13/2017 08:39:38:  - TokenCache: Deserialized 3 items to token cache.\r\n\r\nDEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Verbose: 1 : \r\nDEBUG: 07/13/2017 08:39:38: ac788e95-a652-40b4-a208-558b6742119a - TokenCache: Looking up cache for a token...\r\n\r\nDEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 : \r\nDEBUG: 07/13/2017 08:39:38: ac788e95-a652-40b4-a208-558b6742119a - TokenCache: An item matching the requested resource was found in the cache\r\n\r\nDEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Verbose: 1 : \r\nDEBUG: 07/13/2017 08:39:38: ac788e95-a652-40b4-a208-558b6742119a - TokenCache: 39.8619416383333 minutes left until token in cache expires\r\n\r\nDEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 : \r\nDEBUG: 07/13/2017 08:39:38: ac788e95-a652-40b4-a208-558b6742119a - TokenCache: A matching item (access token or refresh token or both) was found in the cache\r\n\r\nDEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 : \r\nDEBUG: 07/13/2017 08:39:38: ac788e95-a652-40b4-a208-558b6742119a - AcquireTokenHandlerBase: === Token Acquisition finished successfully. An access token was retuned:\r\n\tAccess Token Hash: g0TlXn9VNwI18NeZfKpFCsyTjmfA6s19+2rIaGyJfBU=\r\n\tRefresh Token Hash: Us2JHK+I3QBUnXIG2qXLUSzjfWO/DjFJ1u+ipLQwChc=\r\n\tExpiration Time: 07/13/2017 09:19:30 +00:00\r\n\tUser Hash: He+qD1+VFS0D8IFWRlv0btszk9GT1AqdKPYwE1LpfEE=\r\n\t\r\n\r\nDEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 : \r\nDEBUG: 07/13/2017 08:39:38: a9885ef2-02bb-412b-b9ea-11015045d85a - AcquireTokenHandlerBase: === Token Acquisition started:\r\n\tAuthority: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/\r\n\tResource: https://management.core.windows.net/\r\n\tClientId: 1950a258-227b-4e31-a9cf-717495945fc2\r\n\tCacheType: Microsoft.Azure.Commands.Common.Authentication.ProtectedFileTokenCache (3 items)\r\n\tAuthentication Target: User\r\n\t\r\n\r\nDEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 : \r\nDEBUG: 07/13/2017 08:39:38:  - TokenCache: Deserialized 3 items to token cache.\r\n\r\nDEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Verbose: 1 : \r\nDEBUG: 07/13/2017 08:39:38: a9885ef2-02bb-412b-b9ea-11015045d85a - TokenCache: Looking up cache for a token...\r\n\r\nDEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 : \r\nDEBUG: 07/13/2017 08:39:38: a9885ef2-02bb-412b-b9ea-11015045d85a - TokenCache: An item matching the requested resource was found in the cache\r\n\r\nDEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Verbose: 1 : \r\nDEBUG: 07/13/2017 08:39:38: a9885ef2-02bb-412b-b9ea-11015045d85a - TokenCache: 39.861671805 minutes left until token in cache expires\r\n\r\nDEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 : \r\nDEBUG: 07/13/2017 08:39:38: a9885ef2-02bb-412b-b9ea-11015045d85a - TokenCache: A matching item (access token or refresh token or both) was found in the cache\r\n\r\nDEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 : \r\nDEBUG: 07/13/2017 08:39:38: a9885ef2-02bb-412b-b9ea-11015045d85a - AcquireTokenHandlerBase: === Token Acquisition finished successfully. An access token was retuned:\r\n\tAccess Token Hash: g0TlXn9VNwI18NeZfKpFCsyTjmfA6s19+2rIaGyJfBU=\r\n\tRefresh Token Hash: Us2JHK+I3QBUnXIG2qXLUSzjfWO/DjFJ1u+ipLQwChc=\r\n\tExpiration Time: 07/13/2017 09:19:30 +00:00\r\n\tUser Hash: He+qD1+VFS0D8IFWRlv0btszk9GT1AqdKPYwE1LpfEE=\r\n\t\r\n\r\nDEBUG: ============================ HTTP REQUEST ============================\r\n\r\nHTTP Method:\r\nPUT\r\n\r\nAbsolute Uri:\r\nhttps://management.azure.com/subscriptions/fd16f25a-aa1e-40fd-a8a3-1b5c1fb994d5/resourceGroups/norbert/providers/Microsoft.Compute/disks/testdisk1307?api-version=2017-03-30\r\n\r\nHeaders:\r\nx-ms-client-request-id        : 10eebd7b-a56e-4c6e-b56e-0d67942e5c7a\r\naccept-language               : en-US\r\n\r\nBody:\r\n{\r\n  \"AccountType\": \"StandardLRS\",\r\n  \"sku\": {\r\n    \"name\": \"Standard_LRS\"\r\n  },\r\n  \"properties\": {\r\n    \"creationData\": {\r\n      \"createOption\": \"Empty\"\r\n    },\r\n    \"diskSizeGB\": 2048\r\n  },\r\n  \"location\": \"West Europe\"\r\n}\r\n\r\n\r\nDEBUG: ============================ HTTP RESPONSE ============================\r\n\r\nStatus Code:\r\nBadRequest\r\n\r\nHeaders:\r\nPragma                        : no-cache\r\nx-ms-failure-cause            : gateway\r\nx-ms-request-id               : d397bbd6-fe15-4d5c-adf5-885e11597d39\r\nx-ms-correlation-request-id   : d397bbd6-fe15-4d5c-adf5-885e11597d39\r\nx-ms-routing-request-id       : WESTUS2:20170713T083940Z:d397bbd6-fe15-4d5c-adf5-885e11597d39\r\nStrict-Transport-Security     : max-age=31536000; includeSubDomains\r\nCache-Control                 : no-cache\r\nDate                          : Thu, 13 Jul 2017 08:39:39 GMT\r\n\r\nBody:\r\n{\r\n  \"error\": {\r\n    \"code\": \"InvalidRequestContent\",\r\n    \"message\": \"The request content was invalid and could not be deserialized: 'Could not find member 'AccountType' on object of type 'ResourceDefinition'. Path 'AccountType', line 2, position 17.'\r\n.\"\r\n  }\r\n}\r\n\r\n\r\nDEBUG: AzureQoSEvent: CommandName - New-AzureRmDisk; IsSuccess - True; Duration - 00:00:01.5398051; Exception - ;\r\nDEBUG: Finish sending metric.\r\nDEBUG: 10:39:40 AM - NewAzureRmDisk end processing.\r\nDEBUG: 10:39:40 AM - NewAzureRmDisk end processing.\r\nNew-AzureRmDisk : The request content was invalid and could not be deserialized: 'Could not find member 'AccountType' on object of type 'ResourceDefinition'. Path 'AccountType', line 2, position \r\n17.'.\r\nErrorCode: InvalidRequestContent\r\nErrorMessage: The request content was invalid and could not be deserialized: 'Could not find member 'AccountType' on object of type 'ResourceDefinition'. Path 'AccountType', line 2, position 17.'.\r\nStatusCode: 400\r\nReasonPhrase: Bad Request\r\nOperationID : d397bbd6-fe15-4d5c-adf5-885e11597d39\r\nAt C:\\Temp\\Cases\\Scripts\\create managed disk.ps1:6 char:14\r\n+ ... dataDisk2 = New-AzureRmDisk -DiskName $dataDiskName -Disk (New-AzureR ...\r\n+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n    + CategoryInfo          : NotSpecified: (:) [New-AzureRmDisk], ComputeCloudException\r\n    + FullyQualifiedErrorId : Microsoft.Azure.Commands.Compute.Common.ComputeCloudException,Microsoft.Azure.Commands.Compute.Automation.NewAzureRmDisk\r\n\r\n### Script/Steps for Reproduction\r\n\r\nCreate Managed disk using PS:\r\n$rgName = 'norbert'\r\n$location = 'West Europe'\r\n$dataDiskName = 'testdisk1307'\r\n\r\n$dataDisk2 = New-AzureRmDisk -DiskName $dataDiskName -Disk (New-AzureRmDiskConfig -AccountType StandardLRS -Location $location -CreateOption Empty -DiskSizeGB 2048) -ResourceGroupName $rgName \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Azure/azure-powershell/issues/comments/332804802","html_url":"https://github.com/Azure/azure-powershell/issues/4309#issuecomment-332804802","issue_url":"https://api.github.com/repos/Azure/azure-powershell/issues/4309","id":332804802,"user":{"login":"mblaschke","id":7583579,"avatar_url":"https://avatars1.githubusercontent.com/u/7583579?v=4","gravatar_id":"","url":"https://api.github.com/users/mblaschke","html_url":"https://github.com/mblaschke","followers_url":"https://api.github.com/users/mblaschke/followers","following_url":"https://api.github.com/users/mblaschke/following{/other_user}","gists_url":"https://api.github.com/users/mblaschke/gists{/gist_id}","starred_url":"https://api.github.com/users/mblaschke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mblaschke/subscriptions","organizations_url":"https://api.github.com/users/mblaschke/orgs","repos_url":"https://api.github.com/users/mblaschke/repos","events_url":"https://api.github.com/users/mblaschke/events{/privacy}","received_events_url":"https://api.github.com/users/mblaschke/received_events","type":"User","site_admin":false},"created_at":"2017-09-28T11:11:03Z","updated_at":"2017-09-28T11:11:03Z","author_association":"NONE","body":"I'm getting\r\n```\r\nNew-AzureRmDisk -DiskName \"foobar\" -Disk (New-AzureRmDiskConfig -AccountType StandardLRS -Location \"West Europe\" -CreateOption Empty -DiskSizeGB 2048) -ResourceGroupName foobar\r\n\r\nNew-AzureRmDisk : The request content was invalid and could not be deserialized: 'Could not find member 'AccountType' on object of type 'ResourceDefinition'. Path 'AccountType', \r\nline 2, position 17.'.\r\nErrorCode: InvalidRequestContent\r\nErrorMessage: The request content was invalid and could not be deserialized: 'Could not find member 'AccountType' on object of type 'ResourceDefinition'. Path 'AccountType', line \r\n2, position 17.'.\r\nStatusCode: 400\r\nReasonPhrase: Bad Request\r\n```"}}
{"actor":{"display_login":"mblaschke"}}