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

[General workload issue]: Invalid parameter for Get-AzRmStorageShare cmdlet in Get-StorAcctInfo.ps1 runbook #543

Open
1 task done
chezzer64 opened this issue Feb 25, 2025 · 0 comments
Assignees
Labels
Pattern: AVD Issues / PR's related to the AVD Pattern

Comments

@chezzer64
Copy link

Check for previous/existing GitHub issues

  • I have checked for previous/existing GitHub issues

Issue Type?

Bug

Description

Line 47 in the Get-StorAcctInfo.ps1 runbook has an invalid parameter (-SubscriptionId $Subscription.Id) for the Get-AzRmStorageShare cmdlet.

When the runbook is executed, the following error is logged:
Get-AzRmStorageShare : A parameter cannot be found that matches parameter name 'SubscriptionId'. At line:47 char:142 + ... orageAcctName -Name $shareName -GetShareUsage -SubscriptionId $Subscr ... + ~~~~~~~~~~~~~~~ + CategoryInfo : InvalidArgument: (:) [Get-AzRmStorageShare], ParameterBindingException + FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.Azure.Commands.Management.Storage.GetAzureStorageShareCommand

@chezzer64 chezzer64 added the Pattern: AVD Issues / PR's related to the AVD Pattern label Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Pattern: AVD Issues / PR's related to the AVD Pattern
Projects
None yet
Development

No branches or pull requests

2 participants