{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/azure-powershell/issues/6413","repository_url":"https://api.github.com/repos/Azure/azure-powershell","labels_url":"https://api.github.com/repos/Azure/azure-powershell/issues/6413/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-powershell/issues/6413/comments","events_url":"https://api.github.com/repos/Azure/azure-powershell/issues/6413/events","html_url":"https://github.com/Azure/azure-powershell/issues/6413","id":330125112,"node_id":"MDU6SXNzdWUzMzAxMjUxMTI=","number":6413,"title":"New-AzureRmVmss show incorect message HealthProbe resource missing","user":{"login":"DanielHWe","id":19686494,"node_id":"MDQ6VXNlcjE5Njg2NDk0","avatar_url":"https://avatars1.githubusercontent.com/u/19686494?v=4","gravatar_id":"","url":"https://api.github.com/users/DanielHWe","html_url":"https://github.com/DanielHWe","followers_url":"https://api.github.com/users/DanielHWe/followers","following_url":"https://api.github.com/users/DanielHWe/following{/other_user}","gists_url":"https://api.github.com/users/DanielHWe/gists{/gist_id}","starred_url":"https://api.github.com/users/DanielHWe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanielHWe/subscriptions","organizations_url":"https://api.github.com/users/DanielHWe/orgs","repos_url":"https://api.github.com/users/DanielHWe/repos","events_url":"https://api.github.com/users/DanielHWe/events{/privacy}","received_events_url":"https://api.github.com/users/DanielHWe/received_events","type":"User","site_admin":false},"labels":[{"id":187436091,"node_id":"MDU6TGFiZWwxODc0MzYwOTE=","url":"https://api.github.com/repos/Azure/azure-powershell/labels/Azure%20PS%20Team","name":"Azure PS Team","color":"DDDDDD","default":false},{"id":212033510,"node_id":"MDU6TGFiZWwyMTIwMzM1MTA=","url":"https://api.github.com/repos/Azure/azure-powershell/labels/Compute","name":"Compute","color":"dddddd","default":false},{"id":724160695,"node_id":"MDU6TGFiZWw3MjQxNjA2OTU=","url":"https://api.github.com/repos/Azure/azure-powershell/labels/Compute%20-%20VMSS","name":"Compute - VMSS","color":"dddddd","default":false}],"state":"open","locked":false,"assignee":{"login":"hyonholee","id":2923773,"node_id":"MDQ6VXNlcjI5MjM3NzM=","avatar_url":"https://avatars3.githubusercontent.com/u/2923773?v=4","gravatar_id":"","url":"https://api.github.com/users/hyonholee","html_url":"https://github.com/hyonholee","followers_url":"https://api.github.com/users/hyonholee/followers","following_url":"https://api.github.com/users/hyonholee/following{/other_user}","gists_url":"https://api.github.com/users/hyonholee/gists{/gist_id}","starred_url":"https://api.github.com/users/hyonholee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hyonholee/subscriptions","organizations_url":"https://api.github.com/users/hyonholee/orgs","repos_url":"https://api.github.com/users/hyonholee/repos","events_url":"https://api.github.com/users/hyonholee/events{/privacy}","received_events_url":"https://api.github.com/users/hyonholee/received_events","type":"User","site_admin":false},"assignees":[{"login":"hyonholee","id":2923773,"node_id":"MDQ6VXNlcjI5MjM3NzM=","avatar_url":"https://avatars3.githubusercontent.com/u/2923773?v=4","gravatar_id":"","url":"https://api.github.com/users/hyonholee","html_url":"https://github.com/hyonholee","followers_url":"https://api.github.com/users/hyonholee/followers","following_url":"https://api.github.com/users/hyonholee/following{/other_user}","gists_url":"https://api.github.com/users/hyonholee/gists{/gist_id}","starred_url":"https://api.github.com/users/hyonholee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hyonholee/subscriptions","organizations_url":"https://api.github.com/users/hyonholee/orgs","repos_url":"https://api.github.com/users/hyonholee/repos","events_url":"https://api.github.com/users/hyonholee/events{/privacy}","received_events_url":"https://api.github.com/users/hyonholee/received_events","type":"User","site_admin":false},{"login":"praries880","id":35941423,"node_id":"MDQ6VXNlcjM1OTQxNDIz","avatar_url":"https://avatars2.githubusercontent.com/u/35941423?v=4","gravatar_id":"","url":"https://api.github.com/users/praries880","html_url":"https://github.com/praries880","followers_url":"https://api.github.com/users/praries880/followers","following_url":"https://api.github.com/users/praries880/following{/other_user}","gists_url":"https://api.github.com/users/praries880/gists{/gist_id}","starred_url":"https://api.github.com/users/praries880/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/praries880/subscriptions","organizations_url":"https://api.github.com/users/praries880/orgs","repos_url":"https://api.github.com/users/praries880/repos","events_url":"https://api.github.com/users/praries880/events{/privacy}","received_events_url":"https://api.github.com/users/praries880/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/Azure/azure-powershell/milestones/50","html_url":"https://github.com/Azure/azure-powershell/milestone/50","labels_url":"https://api.github.com/repos/Azure/azure-powershell/milestones/50/labels","id":3367069,"node_id":"MDk6TWlsZXN0b25lMzM2NzA2OQ==","number":50,"title":"2018-07-13","description":"Reviews Complete: 7/2; Code Complete: 7/9; Release to CloudShell: 7/13; Public Availability: 7/17","creator":{"login":"maddieclayton","id":8137559,"node_id":"MDQ6VXNlcjgxMzc1NTk=","avatar_url":"https://avatars1.githubusercontent.com/u/8137559?v=4","gravatar_id":"","url":"https://api.github.com/users/maddieclayton","html_url":"https://github.com/maddieclayton","followers_url":"https://api.github.com/users/maddieclayton/followers","following_url":"https://api.github.com/users/maddieclayton/following{/other_user}","gists_url":"https://api.github.com/users/maddieclayton/gists{/gist_id}","starred_url":"https://api.github.com/users/maddieclayton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maddieclayton/subscriptions","organizations_url":"https://api.github.com/users/maddieclayton/orgs","repos_url":"https://api.github.com/users/maddieclayton/repos","events_url":"https://api.github.com/users/maddieclayton/events{/privacy}","received_events_url":"https://api.github.com/users/maddieclayton/received_events","type":"User","site_admin":false},"open_issues":45,"closed_issues":11,"state":"open","created_at":"2018-05-22T22:03:23Z","updated_at":"2018-07-10T01:07:18Z","due_on":"2018-07-13T07:00:00Z","closed_at":null},"comments":13,"created_at":"2018-06-07T05:45:34Z","updated_at":"2018-07-11T06:41:33Z","closed_at":null,"author_association":"NONE","body":"<!--\r\n\r\nIf this issue is a bug report:\r\n- Upgrade to the latest version of AzureRM and verify you are able to reproduce the issue\r\n    - You can install the latest version of AzureRM from the PowerShell Gallery\r\n        - https://www.powershellgallery.com/packages/AzureRM\r\n    - You can also install the latest version from the Releases section\r\n        - https://github.com/Azure/azure-powershell/releases\r\n- Ensure that you repro the issue with $DebugPreference = \"Continue\" to receive the debug stream\r\n- If this bug involves an exception being thrown, please run Resolve-AzureRmError to receive extended information on the error\r\n- Fill out the below template\r\n\r\nIf this issue is not a bug report, please remove the below template\r\n\r\n-->\r\n\r\n### Description\r\n\r\nI create first a Network Load Balancer include HealthProbe etc. and then on create the according Vm Scale Set with New-AzureRmVmss, I got the message that the HealthProbe is missing. But by checking on the azure portel the HealthProbe was correctly create within the Load Balancer resource.\r\n\r\n### Script/Steps for Reproduction\r\n\r\n<!-- Please provide the necessary script(s) that reproduce the issue -->\r\n\r\n```powershell\r\n# Set required Variables\r\n$lbName = \"NRP-LB\"\r\n$loc = \"<My Region>\"\r\n$currentrg = \"<My rg name>\"\r\n$vnetname = \"<My Vnet Name>\"\r\n$vnetrg = \"<Name of RG conteining my vnet>\"\r\n\r\n$vmPassword = ConvertTo-SecureString $adminPassword -AsPlainText -Force\r\n$vmCred = New-Object System.Management.Automation.PSCredential($adminUsername, $vmPassword)\r\n\r\n# Set Network\r\n$vnet= Get-AzureRmVirtualNetwork -Name $vnetname -ResourceGroupName $vnetrg\r\n$subnetMain = $vnet.Subnets[2]\r\n$backendSubnetName = $subnetMain.Name\r\n\r\n\r\n#Deploy Loadbalancer\r\n$frontendIP = New-AzureRmLoadBalancerFrontendIpConfig `\r\n     -Name LB-Frontend `\r\n     -SubnetId $subnetMain.Id `\r\n     -ErrorAction Stop \r\n\r\n$beaddresspool= New-AzureRmLoadBalancerBackendAddressPoolConfig `\r\n     -Name \"LB-backend\" `\r\n     -ErrorAction Stop\r\n\r\n$inboundNATRule1= New-AzureRmLoadBalancerInboundNatRuleConfig `\r\n     -Name \"RDP\" `\r\n     -FrontendIpConfiguration $frontendIP `\r\n     -Protocol TCP `\r\n     -FrontendPort 3389 `\r\n     -BackendPort 3389 `\r\n     -ErrorAction Stop\r\n\r\n$healthProbe = New-AzureRmLoadBalancerProbeConfig `\r\n     -Name \"HealthProbe\" `\r\n     -RequestPath \"Default.htm\" `\r\n     -Protocol http `\r\n     -Port 80 `\r\n     -IntervalInSeconds 15 `\r\n     -ProbeCount 2 `\r\n     -ErrorAction Stop\r\n\r\n$lbrule = New-AzureRmLoadBalancerRuleConfig `\r\n     -Name \"HTTP\" `\r\n     -FrontendIpConfiguration $frontendIP `\r\n     -BackendAddressPool $beAddressPool `\r\n     -Probe $healthProbe `\r\n     -Protocol Tcp `\r\n     -FrontendPort 80 `\r\n     -BackendPort 80\r\n\r\n$nrplb = New-AzureRmLoadBalancer `\r\n     -ResourceGroupName $currentrg `\r\n     -Name $lbName `\r\n     -Location $loc `\r\n     -FrontendIpConfiguration $frontendIP `\r\n     -InboundNatRule $inboundNATRule1 `\r\n     -LoadBalancingRule $lbrule `\r\n     -BackendAddressPool $beAddressPool `\r\n     -Probe $healthProbe \r\n\r\n#Deploy VM Scale Set ==> Error\r\nNew-AzureRmVmss `\r\n  -Credential $vmCred `\r\n  -ResourceGroupName $currentrg `\r\n  -Location $loc `\r\n  -VMScaleSetName $vmssName `\r\n  -PublicIpAddressName $frontendIP.Name `\r\n  -LoadBalancerName  $lbName `\r\n  -UpgradePolicy \"Automatic\" `\r\n  -ErrorAction Stop `\r\n  -VirtualNetworkName $vnetname `\r\n  -SubnetName $backendSubnetName `\r\n```\r\n\r\n### Module Version\r\n\r\n6.2.1\r\n\r\n### Environment Data\r\n\r\nName                           Value                                                                                                            \r\n----                           -----                                                                                                            \r\nPSVersion                      5.1.16299.431                                                                                                    \r\nPSEdition                      Desktop                                                                                                          \r\nPSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}                                                                                          \r\nBuildVersion                   10.0.16299.431                                                                                                   \r\nCLRVersion                     4.0.30319.42000                                                                                                  \r\nWSManStackVersion              3.0                                                                                                              \r\nPSRemotingProtocolVersion      2.3                                                                                                              \r\nSerializationVersion           1.1.0.1    \r\n\r\n### Debug Output\r\n\r\n<!-- Please run the above script with $DebugPreference = \"Continue\" and paste the resulting debug stream in the below code block -->\r\n\r\n```\r\nWARNUNG: The output object type of this cmdlet will be modified in a future release.\r\n\r\nNew-AzureRmVmss : Resource /subscriptions/XXX/resourceGroups/XXX/providers/Microsoft.Network/loadBal\r\nancers/NRP-LB/loadBalancingRules/HTTP referenced by resource /subscriptions/XXX/resourceGroups/XXX/p\r\nroviders/Microsoft.Network/loadBalancers/NRP-LB/probes/HealthProbe was not found. Please make sure that the referenced resource exists, and \r\nthat both resources are in the same region.\r\nIn D:\\scripts\\create_loadBalancer_and_vmss.ps1:228 Zeichen:1\r\n+ New-AzureRmVmss `\r\n+ ~~~~~~~~~~~~~~~~~\r\n    + CategoryInfo          : CloseError: (:) [New-AzureRmVmss], CloudException\r\n    + FullyQualifiedErrorId : Microsoft.Azure.Commands.Compute.Automation.NewAzureRmVmss\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/Azure/azure-powershell/issues/comments/404062012","html_url":"https://github.com/Azure/azure-powershell/issues/6413#issuecomment-404062012","issue_url":"https://api.github.com/repos/Azure/azure-powershell/issues/6413","id":404062012,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNDA2MjAxMg==","user":{"login":"DanielHWe","id":19686494,"node_id":"MDQ6VXNlcjE5Njg2NDk0","avatar_url":"https://avatars1.githubusercontent.com/u/19686494?v=4","gravatar_id":"","url":"https://api.github.com/users/DanielHWe","html_url":"https://github.com/DanielHWe","followers_url":"https://api.github.com/users/DanielHWe/followers","following_url":"https://api.github.com/users/DanielHWe/following{/other_user}","gists_url":"https://api.github.com/users/DanielHWe/gists{/gist_id}","starred_url":"https://api.github.com/users/DanielHWe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanielHWe/subscriptions","organizations_url":"https://api.github.com/users/DanielHWe/orgs","repos_url":"https://api.github.com/users/DanielHWe/repos","events_url":"https://api.github.com/users/DanielHWe/events{/privacy}","received_events_url":"https://api.github.com/users/DanielHWe/received_events","type":"User","site_admin":false},"created_at":"2018-07-11T06:41:33Z","updated_at":"2018-07-11T06:41:33Z","author_association":"NONE","body":"No, it is during the creation of a new VMSS.\r\n\r\nFull not working script is (giving Cannot specify user image overrides for a disk already defined):\r\n```\r\n$vmss = New-AzureRmVmssConfig -Location $location -SkuCapacity 2 -SkuName \"Standard_DS1_v2\" -UpgradePolicyMode \"manual\" -ErrorAction Stop\r\n\r\nAdd-AzureRmVmssNetworkInterfaceConfiguration -VirtualMachineScaleSet $vmss -Name \"vmssNetwork\" -Primary $true -IPConfiguration $ipConfig\r\nSet-AzureRmVmssStorageProfile -OsDiskOsType Windows -VirtualMachineScaleSet $vmss  -OSDiskCreateOption FromImage\r\nSet-AzureRmVmssOSProfile -ComputerNamePrefix $vmNamePrefix -AdminUsername $adminUsername -AdminPassword $adminPassword -VirtualMachineScaleSet $vmss\r\n\r\nNew-AzureRmVmss -ResourceGroupName $currentrg -Name $vmssName -VirtualMachineScaleSet $vmss -Verbose -ErrorAction Stop;\r\n\r\n```\r\n\r\nWorking version:\r\n```\r\n$vmss = New-AzureRmVmssConfig -Location $location -SkuCapacity 2 -SkuName \"Standard_DS1_v2\" -UpgradePolicyMode \"manual\" -ErrorAction Stop\r\n\r\nAdd-AzureRmVmssNetworkInterfaceConfiguration -VirtualMachineScaleSet $vmss -Name \"vmssNetwork\" -Primary $true -IPConfiguration $ipConfig\r\nSet-AzureRmVmssStorageProfile -VirtualMachineScaleSet $vmss -ImageReferencePublisher MicrosoftWindowsServer -ImageReferenceOffer WindowsServer -ImageReferenceSku 2016-Datacenter -ImageReferenceVersion latest -OsDiskCreateOption FromImage\r\nSet-AzureRmVmssOSProfile -ComputerNamePrefix $vmNamePrefix -AdminUsername $adminUsername -AdminPassword $adminPassword -VirtualMachineScaleSet $vmss\r\n\r\nNew-AzureRmVmss -ResourceGroupName $currentrg -Name $vmssName -VirtualMachineScaleSet $vmss -Verbose -ErrorAction Stop;\r\n```"}}
{"actor":{"display_login":"DanielHWe"}}