-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Update Set-AzVMOSDisk.md #26736
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
Merged
Merged
Update Set-AzVMOSDisk.md #26736
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Fixed typos in a couple of variable names Added called but undeclared variables to stop script failing Updated some commands to reflect current syntax Added -DisableRbacAuthorization for KeyVault Tested 7.4.5 core (MacOS) and 7.4.6 core (Windows)
|
| Type | Cmdlet | Example | Line | RuleName | Description | Extent | Remediation |
|---|---|---|---|---|---|---|---|
| Set-AzVMOSDisk | 5 | 42 | Unassigned_Variable | Get-AzDiskEncryptionSet -ResourceGroupName $rgname is a null-valued parameter value. | -ResourceGroupName | Assign value for $rgname. | |
| Set-AzVMOSDisk | 5 | 53 | Unassigned_Variable | New-AzVirtualNetworkSubnetConfig -Name ($subnetPrefix + $ResourceGroupName) is a null-valued parameter value. | -Name | Assign value for ($subnetPrefix + $ResourceGroupName). | |
| Set-AzVMOSDisk | 5 | 54 | Unassigned_Variable | New-AzVirtualNetwork -Name ($vnetPrefix + $ResourceGroupName) is a null-valued parameter value. | -Name | Assign value for ($vnetPrefix + $ResourceGroupName). | |
| Set-AzVMOSDisk | 5 | 55 | Unassigned_Variable | Get-AzVirtualNetwork -Name ($vnetPrefix + $ResourceGroupName) is a null-valued parameter value. | -Name | Assign value for ($vnetPrefix + $ResourceGroupName). | |
| Set-AzVMOSDisk | 5 | 57 | Unassigned_Variable | New-AzPublicIpAddress -Name ($pubIpPrefix + $ResourceGroupName) is a null-valued parameter value. | -Name | Assign value for ($pubIpPrefix + $ResourceGroupName). | |
| Set-AzVMOSDisk | 5 | 57 | Unassigned_Variable | New-AzPublicIpAddress -DomainNameLabel $domainNameLabel2 is a null-valued parameter value. | -DomainNameLabel | Assign value for $domainNameLabel2. | |
| Set-AzVMOSDisk | 5 | 58 | Unassigned_Variable | Get-AzPublicIpAddress -Name ($pubIpPrefix + $ResourceGroupName) is a null-valued parameter value. | -Name | Assign value for ($pubIpPrefix + $ResourceGroupName). | |
| Set-AzVMOSDisk | 5 | 62 | Unassigned_Variable | New-AzNetworkInterface -Name ($nicPrefix + $ResourceGroupName) is a null-valued parameter value. | -Name | Assign value for ($nicPrefix + $ResourceGroupName). | |
| Set-AzVMOSDisk | 5 | 63 | Unassigned_Variable | Get-AzNetworkInterface -Name ($nicPrefix + $ResourceGroupName) is a null-valued parameter value. | -Name | Assign value for ($nicPrefix + $ResourceGroupName). |
⚠️ Windows PowerShell - Windows
| Type | Cmdlet | Example | Line | RuleName | Description | Extent | Remediation |
|---|---|---|---|---|---|---|---|
| Set-AzVMOSDisk | 5 | 42 | Unassigned_Variable | Get-AzDiskEncryptionSet -ResourceGroupName $rgname is a null-valued parameter value. | -ResourceGroupName | Assign value for $rgname. | |
| Set-AzVMOSDisk | 5 | 53 | Unassigned_Variable | New-AzVirtualNetworkSubnetConfig -Name ($subnetPrefix + $ResourceGroupName) is a null-valued parameter value. | -Name | Assign value for ($subnetPrefix + $ResourceGroupName). | |
| Set-AzVMOSDisk | 5 | 54 | Unassigned_Variable | New-AzVirtualNetwork -Name ($vnetPrefix + $ResourceGroupName) is a null-valued parameter value. | -Name | Assign value for ($vnetPrefix + $ResourceGroupName). | |
| Set-AzVMOSDisk | 5 | 55 | Unassigned_Variable | Get-AzVirtualNetwork -Name ($vnetPrefix + $ResourceGroupName) is a null-valued parameter value. | -Name | Assign value for ($vnetPrefix + $ResourceGroupName). | |
| Set-AzVMOSDisk | 5 | 57 | Unassigned_Variable | New-AzPublicIpAddress -Name ($pubIpPrefix + $ResourceGroupName) is a null-valued parameter value. | -Name | Assign value for ($pubIpPrefix + $ResourceGroupName). | |
| Set-AzVMOSDisk | 5 | 57 | Unassigned_Variable | New-AzPublicIpAddress -DomainNameLabel $domainNameLabel2 is a null-valued parameter value. | -DomainNameLabel | Assign value for $domainNameLabel2. | |
| Set-AzVMOSDisk | 5 | 58 | Unassigned_Variable | Get-AzPublicIpAddress -Name ($pubIpPrefix + $ResourceGroupName) is a null-valued parameter value. | -Name | Assign value for ($pubIpPrefix + $ResourceGroupName). | |
| Set-AzVMOSDisk | 5 | 62 | Unassigned_Variable | New-AzNetworkInterface -Name ($nicPrefix + $ResourceGroupName) is a null-valued parameter value. | -Name | Assign value for ($nicPrefix + $ResourceGroupName). | |
| Set-AzVMOSDisk | 5 | 63 | Unassigned_Variable | Get-AzNetworkInterface -Name ($nicPrefix + $ResourceGroupName) is a null-valued parameter value. | -Name | Assign value for ($nicPrefix + $ResourceGroupName). |
️✔️Help File Existence Check
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
Contributor
|
Thank you for your contribution vinfnet! We will review the pull request and get back to you soon. |
Collaborator
|
/azp run |
Contributor
|
Azure Pipelines successfully started running 3 pipeline(s). |
Collaborator
|
/azp run |
Contributor
|
Azure Pipelines successfully started running 3 pipeline(s). |
VeryEarly
approved these changes
Nov 29, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixed typos in a couple of variable names
Added called but undeclared variables to stop script failing Updated some commands to reflect current syntax
Added -DisableRbacAuthorization for KeyVault
Tested 7.4.5 core (MacOS) and 7.4.6 core (Windows)
Description
Fixed typos in a couple of variable names
Added called but undeclared variables to stop script failing Updated some commands to reflect current syntax
Added -DisableRbacAuthorization for KeyVault
Tested 7.4.5 core (MacOS) and 7.4.6 core (Windows)
Mandatory Checklist
Please choose the target release of Azure PowerShell. (⚠️ Target release is a different concept from API readiness. Please click below links for details.)
[ X] Check this box to confirm: I have read the Submitting Changes section of
CONTRIBUTING.mdand reviewed the following information:ChangeLog.mdfile(s) appropriatelysrc/{{SERVICE}}/{{SERVICE}}/ChangeLog.md.## Upcoming Releaseheader in the past tense.ChangeLog.mdif no new release is required, such as fixing test case only.