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

Install-AzProfile : Cannot validate argument on parameter 'Profile'. #103

Closed
bganapa opened this issue Jun 4, 2021 · 2 comments
Closed
Assignees

Comments

@bganapa
Copy link
Member

bganapa commented Jun 4, 2021

PS /home/azureuser> Install-AzProfile -Profile 2020-09-01-hybrid -Force
Install-AzProfile: Cannot validate argument on parameter 'Profile'. The argument "2020-09-01-hybrid" does not belong to the set "2019-03-01-hybrid" specified by the ValidateSet attribute. Supply an argument that is in the set and then try the command again.

This issue is happens when AzureRM profile map is already cached in the local machine

$ProfileCache = Join-Path -path $env:ProgramData -ChildPath "Microsoft\AzurePowerShell\ProfileCache"

@bganapa bganapa assigned TheOnlyWei and bganapa and unassigned TheOnlyWei Jun 4, 2021
@bganapa
Copy link
Member Author

bganapa commented Jun 4, 2021

Workaround is to do the following and then continue with
Get-AzApiProfile -update

@bganapa bganapa changed the title Install-AzProfile Cannot validate argument on parameter 'Profile'. Install-AzProfile : Cannot validate argument on parameter 'Profile'. Jun 4, 2021
@bganapa
Copy link
Member Author

bganapa commented Jul 8, 2021

Released a fix in Az.BootStrapper 1.0.1 version

@bganapa bganapa closed this as completed Jul 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants