azure powershell
4 TopicsHow to list azure resources which have inheriting access and direct access using powershell
Hi, Is it really possible to list azure resources which have inherited access and direct access using Powershell? I couldn't find any azure PowerShell command which shows at least any column which has this information. Can anyone help me here, please?Solved7.2KViews0likes5CommentsPowershell error with the below code
Hi Champions, Can someone please help me with the below powershell code which i want to upload the key vault secrets excel csv file to azure key vault. But it is giving below error. $keyVaultName = "Test-marketing" $data = Import-Csv "C:\Users\Ram.Muppaneni\Downloads\marketing.csv" # Iterate over each row in the CSV and create/update the secrets in the Key Vault foreach ($row in $data) { $secretName = $row.Name $secretValue = $row.Secretvalue # Create or update the secret Set-AzKeyVaultSecret -VaultName $keyVaultName -Name $secretName -SecretValue $secretValue } Getting below error: Line | 6 | … -VaultName $keyVaultName -Name $secretName -SecretValue $secretValue | ~~~~~~~~~~~~ | Cannot bind argument to parameter 'SecretValue' because it is null. Excel csv file columns and sample data are below three Name Secretvalue Type Marketing password1 kitchen refrigerator password I would like to add the above column "Type" as well to the code which needs to upload the data to the keyvault along with the Name and Secretvalue. Please assist. Looking forward to hear from you. Cheers, RamSolved2.5KViews0likes17CommentsAzure powershell Set-AzStorageLocalUser - how to use existing ssh key in azure?
I am trying to build powershell script to create a local user for sftp in the Azure Stroage account. We have ssh keys already created in Azure. When the local user is created, existing ssh key created in azure should be assigned to the user. This can be easily done through Azure portal. However, we are looking for the same option in the powershell commandlet. Set-AzStorageLocalUser has option for "sshAuthorizedKey", but there is no option to select existing key. Do we know how this can be achieved?Solved300Views0likes4Comments