-
Notifications
You must be signed in to change notification settings - Fork 166
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
AzOps - Pull fails with MissingApiVersionParameter #644
Comments
Looks like a transient issue in ARM, did it ever work before or did it start after a specific configuration change? |
After taking a closer look in the backend, it looks like it is failing on some |
It is not transient. The error always occurs on the same resourcegroup at:
|
The roleAssignments message is unfortunately misleading, it is failing on what I mentioned above according to the correlationid. Looks very similar to #464 |
It does look similar. |
The correlationIds are only for backend ARMlogs investigation, so unfortunately not something you can do on your own. We will investigate and look at a more graceful way to handle such resource provider failures. |
Sadly the purpose of this repo and pipeline is to fetch the resources (as a backup of resources not deployed as code), but I will try some more exclusions and see if I get there. |
I have the same similar issue, but for now excludeded it to be pulled. The consequence is that you don't have your state, so I have ended up blocking manual operations in the portal for these resource types. It is not the best way if you have shared responsibility around these resource declarations, but for now it seems like the best fit. |
The above correlationId is interestingly enough related to the same resource type ( Nevertheless, we will look at changing the way we handle these types of failures and instead throw a warning for child/auxiliary resources that cannot be exported. |
Spelling was fine. Warning rather then fail would be a welcome change. |
Description
When running AzOps - Pull to get all policies, resources, resourcegroups, and roles on two managementgroups (and whatever is below), the pipeline fails on step Initialize with following error (some information replaced with replaced):
[06:32:35][Get-AzOpsRoleAssignment] Retrieving Role Assignments at scope /subscriptions/replaced/resourceGroups/replaced WARNING: [06:33:55][Invoke-AzOpsScriptBlock] Tried unsuccessfully 6 out of 6 times, giving up. | MissingApiVersionParameter : The api-version query parameter (?api-version=) is required for all requests. CorrelationId: 95e29d50-26aa-445e-b4e0-15a538da9302 Exception: The running command stopped because the preference variable
Steps to reproduce
AzOps Module version 1.8.1
settings.json.zip
The text was updated successfully, but these errors were encountered: