-
Notifications
You must be signed in to change notification settings - Fork 5
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
nextstagepropertiesjson is not working as expected #2
Comments
Hi @spotakash, import first the module Az.Accounts, after that import the module Az.ResourceGraph. Both with Runtime version 5.1: Let me know the results. |
@Wiszanyel I allowed me to import module with 5.1 following sequence suggested by you. But configuration still fails (with new error) You cannot call a method on a null-valued expression. (You cannot call a method on a null-valued expression.) My nextstagepropertiesjson is as follows.
|
@spotakash , can you double check if the |
@helderpinto it is still throwing same error when schedule comes to trigger. |
Thank you for reporting this, @spotakash. There were some recent ARG API changes in the query response payload which broke the script. There was also a problem with the script not dealing well with Maintenance Configuration IDs which were not lower-cased. The most recent commit of the Create-StagedMaintenanceConfiguration.ps1 script fixed both issues. Can you please test it and report how it went? |
Thanks @helderpinto it moved but throw error as it detects existing maintenance configuration. It seems you may need to fix logic so that it updates existing pre-prod or prod (existing) maintenance configuration with new parameters. Error Message below
|
The logic is prepared to update existing maintenance configurations. It is based on an idempotent ARM template deployment. It seems the |
@helderpinto I have resolved the issue by following a workaround. I deleted my previous maintenance configuration and ran the runbook again. It worked as expected and did not show any errors. I think the problem was caused by some intermittent caching issue that made my preprod and prod maintenance configuration appear in a different region than the base maintenance configuration. I verified that the runbook works fine with different parameters as well. You can close this issue now. |
I followed all instructions and have prerequisites. But, it did not work with following exception.
It seems like there is dependency of Az.ResourceGraph for 5.1 while module in automation account is only available for 7.2
If I tried to import 5.1, it throwa dependencies error of Az.Accounts should be > 2.9.1
while it is only available for 2.8.0
The text was updated successfully, but these errors were encountered: