Closed theheatDK closed 4 years ago
@theheatDK
-ResourceGroupName
and -Name
are required.
From the cmdlet Syntax [-ResourceGroupName] <string> [-Name] <string>
, you can see the value of the 2 parameter are not with [], only the parameter name with [], this means you can provide the 2 required parameters without parameter name, but only parameter value in the specific position. like:
Remove-AzStorageAccountNetworkRule $MyResourceGroupName $MyStorageAccountName -IPRule $MyRule
Thanks @blueww :-)
Description
Hi, I am a little confused and it might be me that does not understand enough about Powershell :-)
To me the above means that there is only one required parameter (-IPRule), but when I try to call the cmdlet it only works if I also supply -ResourceGroupName and -Name.
Is this expected behavior?
Regards Peter
Steps to reproduce
Environment data
Module versions
Debug output
Error output