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

The Vault vaultname not found within subscription. #611

Closed
santhoshb-msft opened this issue Nov 29, 2023 · 0 comments · Fixed by #609
Closed

The Vault vaultname not found within subscription. #611

santhoshb-msft opened this issue Nov 29, 2023 · 0 comments · Fixed by #609
Labels
enhancement A request for new functionality or improvement

Comments

@santhoshb-msft
Copy link
Contributor

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.

@santhoshb-msft santhoshb-msft added the enhancement A request for new functionality or improvement label Nov 30, 2023
@santhoshb-msft santhoshb-msft changed the title The Vault '{vaultname}' not found within subscription. The Vault vaultname not found within subscription. Dec 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement A request for new functionality or improvement
Projects
None yet
1 participant