Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NSG name is not taking correct in New-AzVMSS command #26865

Open
Sriram-Kedarasetti opened this issue Dec 12, 2024 · 2 comments
Open

NSG name is not taking correct in New-AzVMSS command #26865

Sriram-Kedarasetti opened this issue Dec 12, 2024 · 2 comments
Labels
bug This issue requires a change to an existing behavior in the product in order to be resolved. Compute - VMSS customer-reported Service Attention This issue is responsible by Azure service team.

Comments

@Sriram-Kedarasetti
Copy link

Description

Hello Team,

I am trying to create new VMSS using New-AzVmss command as below:

$vmss = New-AzVmss `
        -ResourceGroupName $rgName `
        -Location $location `
        -Name ($vmNamePrefix + $runnerRegionAlias) `
        -Credential $Credential `
        -VirtualNetworkName $vnetName `
        -VnetAddressPrefix $vnetAddressSpace `
        -SubnetName $subnetName `
        -SubnetAddressPrefix $vnetAddressSpace `
        -PublicIpAddressName $publicIpName `
        -AllocationMethod Static `
        -SecurityGroupName $dataPlaneNsgName `
        -OrchestrationMode Uniform `
        -InstanceCount 1 `
        -Zone 1 `
        -UpgradePolicyMode "Automatic" `
        -ImageName Win2022AzureEdition `
        -SecurityType "TrustedLaunch"

Here the NSG name is not picking as mentioned in the variable, it is picking default value

Image

Issue script & Debug output

Hello Team,

I am trying to create new VMSS using New-AzVmss command as below:

    $vmss = New-AzVmss `
            -ResourceGroupName $rgName `
            -Location $location `
            -Name ($vmNamePrefix + $runnerRegionAlias) `
            -Credential $Credential `
            -VirtualNetworkName $vnetName `
            -VnetAddressPrefix $vnetAddressSpace `
            -SubnetName $subnetName `
            -SubnetAddressPrefix $vnetAddressSpace `
            -PublicIpAddressName $publicIpName `
            -AllocationMethod Static `
            -SecurityGroupName $dataPlaneNsgName `
            -OrchestrationMode Uniform `
            -InstanceCount 1 `
            -Zone 1 `
            -UpgradePolicyMode "Automatic" `
            -ImageName Win2022AzureEdition `
            -SecurityType "TrustedLaunch"

Here the NSG name is not picking as mentioned in the variable, it is picking default value

<img width="725" alt="Image" src="https://github.com/user-attachments/assets/b8065653-535f-43c6-b69d-aca9b0be004f" />

Environment data

PS C:\NW\Azure-NetworkAnalytics\src\Tools\RunnerDeploymentAutomation> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      5.1.22621.4391
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.22621.4391
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Module versions

PS C:\NW\Azure-NetworkAnalytics\src\Tools\RunnerDeploymentAutomation> Get-Module Az*

ModuleType Version    Name                                ExportedCommands
---------- -------    ----                                ----------------
Script     4.0.0      Az.Accounts                         {Add-AzEnvironment, Clear-AzConfig, Clear-AzContext, Clear...
Script     9.0.0      Az.Compute                          {Add-AzImageDataDisk, Add-AzVhd, Add-AzVMAdditionalUnatten...
Script     7.11.0     Az.Network                          {Add-AzApplicationGatewayAuthenticationCertificate, Add-Az...
Script     3.2.1      Az.OperationalInsights              {Disable-AzOperationalInsightsIISLogCollection, Disable-Az...
Script     7.7.0      Az.Resources                        {Export-AzResourceGroup, Export-AzTemplateSpec, Get-AzDeny...
Script     8.0.0      Az.Storage                          {Add-AzRmStorageContainerLegalHold, Add-AzStorageAccountMa...

Error output

@Sriram-Kedarasetti Sriram-Kedarasetti added bug This issue requires a change to an existing behavior in the product in order to be resolved. needs-triage This is a new issue that needs to be triaged to the appropriate team. labels Dec 12, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added customer-reported and removed needs-triage This is a new issue that needs to be triaged to the appropriate team. labels Dec 12, 2024
@isra-fel isra-fel added Compute - VMSS Service Attention This issue is responsible by Azure service team. labels Dec 19, 2024
Copy link
Contributor

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @TravisCragg-MSFT, @sandeepraichura.

1 similar comment
Copy link
Contributor

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @TravisCragg-MSFT, @sandeepraichura.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue requires a change to an existing behavior in the product in order to be resolved. Compute - VMSS customer-reported Service Attention This issue is responsible by Azure service team.
Projects
None yet
Development

No branches or pull requests

2 participants