Skip to content

Conversation

cocallaw
Copy link
Contributor

Update the value passed to parameter -StorageAccountType from 'StandardSSD_LRS' to 'Standard_LRS' in two PowerShell examples

Description

The current documentation provides two examples where the value of 'StandardSSD_LRS' is provided for the parameter -StorageAccountType. This is not a proper value as defined in another section of this documentation and in the error message that is returned when the incorrect value is used. The possible correct values are Standard_LRS, Standard_ZRS and Premium_LRS

If the current incorrect value listed 'StandardSSD_LRS' is used, the cmdlet will fail with the following error message:

PS /home/corey> $storageAccountType = "StandardSSD_LRS"
PS /home/corey> 
PS /home/corey> New-AzGalleryImageVersion -ResourceGroupName $rgName -GalleryName $galleryName -GalleryImageDefinitionName $galleryImageDefinitionName -Name $galleryImageVersionName -Location $location -StorageAccountType $storageAccountType -SourceImageId $sourceImageId
New-AzGalleryImageVersion: The value 'StandardSSD_LRS' of parameter 'galleryImageVersion.properties.publishingProfile.storageAccountType' is not allowed. Allowed values are: Standard_LRS, Standard_ZRS, Premium_LRS.
ErrorCode: InvalidParameter
ErrorMessage: The value 'StandardSSD_LRS' of parameter 'galleryImageVersion.properties.publishingProfile.storageAccountType' is not allowed. Allowed values are: Standard_LRS, Standard_ZRS, Premium_LRS.
ErrorTarget: galleryImageVersion.properties.publishingProfile.storageAccountType
StatusCode: 400
ReasonPhrase: Bad Request

Mandatory Checklist

  • SHOULD update ChangeLog.md file(s) appropriately
    • For SDK-based development mode, update src/{{SERVICE}}/{{SERVICE}}/ChangeLog.md.
      • A snippet outlining the change(s) made in the PR should be written under the ## Upcoming Release header in the past tense.
    • For autorest-based development mode, include the changelog in the PR description.
    • Should not change ChangeLog.md if no new release is required, such as fixing test case only.
  • SHOULD regenerate markdown help files if there is cmdlet API change. Instruction
  • SHOULD have proper test coverage for changes in pull request.
  • SHOULD NOT adjust version of module manually in pull request

…torageAccountType

Update the value passed to parameter -StorageAccountType from 'StandardSSD_LRS' to 'Standard_LRS'
Copy link

azure-client-tools-bot-prd bot commented Oct 28, 2024

⚠️Az.Compute
️✔️Build
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
⚠️Help Example Check
⚠️PowerShell Core - Windows
Type Cmdlet Example Line RuleName Description Extent Remediation
⚠️ New-AzGalleryImageVersion 11 6 Unassigned_Variable New-AzGalleryImageVersion -SourceImageId $sourceImageId is a null-valued parameter value. -SourceImageId Assign value for $sourceImageId.
⚠️ New-AzGalleryImageVersion 12 7 Unassigned_Variable New-AzGalleryImageVersion -SourceImageId $sourceImageId is a null-valued parameter value. -SourceImageId Assign value for $sourceImageId.
⚠️Windows PowerShell - Windows
Type Cmdlet Example Line RuleName Description Extent Remediation
⚠️ New-AzGalleryImageVersion 11 6 Unassigned_Variable New-AzGalleryImageVersion -SourceImageId $sourceImageId is a null-valued parameter value. -SourceImageId Assign value for $sourceImageId.
⚠️ New-AzGalleryImageVersion 12 7 Unassigned_Variable New-AzGalleryImageVersion -SourceImageId $sourceImageId is a null-valued parameter value. -SourceImageId Assign value for $sourceImageId.
️✔️Help File Existence Check
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows

@Nickcandy
Copy link
Contributor

/azp run azure-powershell - security-tools

Copy link
Contributor

Azure Pipelines successfully started running 1 pipeline(s).

@Nickcandy
Copy link
Contributor

/azp run azure-powershell - security-tools

Copy link
Contributor

Azure Pipelines successfully started running 1 pipeline(s).

@Nickcandy Nickcandy merged commit e578436 into Azure:release-2024-11-11 Oct 29, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants