You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
While using this repo to deploy my Azure Marketplace offers, I faced an error: The Vault '{vaultname}' not found within subscription.
After investigating a bit, I found that az keyvault set-policy --name $KeyVault --object-id $WebAppNamePortalId --secret-permissions get list --key-permissions get list --output $azCliOutput in Deploy.ps1 has some kind of a paging by default and if your Azure Subscription has many vaults, you newly created might not be returned. This leads to The Vault '{vaultname}' not found within subscription. error and unpredictable behavior of the solution.
I found an easy fix for this issue by adding a filter by the resource group.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
Are you using the CloudShell?
If not using the CloudShell:
OS: [e.g. iOS]
PowerShell version
Modules installed
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Describe the bug
While using this repo to deploy my Azure Marketplace offers, I faced an error: The Vault '{vaultname}' not found within subscription.
After investigating a bit, I found that az keyvault set-policy --name $KeyVault --object-id $WebAppNamePortalId --secret-permissions get list --key-permissions get list --output $azCliOutput in Deploy.ps1 has some kind of a paging by default and if your Azure Subscription has many vaults, you newly created might not be returned. This leads to The Vault '{vaultname}' not found within subscription. error and unpredictable behavior of the solution.
I found an easy fix for this issue by adding a filter by the resource group.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: