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

Invalid character error #755

Closed
danielesasia opened this issue Feb 21, 2023 · 2 comments · Fixed by #761
Closed

Invalid character error #755

danielesasia opened this issue Feb 21, 2023 · 2 comments · Fixed by #761
Assignees
Labels
area/powershell enhancement New feature or request

Comments

@danielesasia
Copy link

Hi all,
when perfoming Pull on our entire Azure structure, we recieve this error and pull fails

WARNING: [10:39:20][ConvertTo-AzOpsState] The specified AzOpsState file contains invalid characters (remove any "[" or "]" characters)! Skipping

This is happening on a single resource containing "brackets" in its name ("start-stop-vm[la-sap-vm-scheduler].json")

I have seen this FAQ @https://github.com/azure/azops/wiki/frequently-asked-questions#subscriptions-or-resources-not-showing-up-in-repository ;
Anyway there are resources created by microsoft that contains square brackets by default.
So far the only solution I found is to skip all the objects having the same type of the one causing the problem, but its quite a weird solution. Is there any way at least to simply skip one reource based on his name/ID?

Thank you all in advance.
D

@daltondhcp
Copy link
Contributor

Thank you for raising this, this is currently by design. We are aware of the fact that some Microsoft-created resources use these characters.
We will discuss internally how to improve this and update as soon as possible.

@daltondhcp daltondhcp added enhancement New feature or request area/powershell and removed triage labels Feb 21, 2023
@danielesasia
Copy link
Author

Thank you @daltondhcp for your quick answer. I really hope to find this new feature soon available.

@daltondhcp daltondhcp linked a pull request Feb 24, 2023 that will close this issue
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/powershell enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants