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

[azure][fix]: Ignore errors from Azure side #2263

Merged
merged 7 commits into from
Nov 8, 2024
Merged

Conversation

1101-1
Copy link
Collaborator

@1101-1 1101-1 commented Oct 23, 2024

Description

Azure may throw errors via API/cli for the following commands for no reason:

API path Corresponding error
/subscriptions/{subscriptionId}/providers/Microsoft.Network/dnszones The specified subscription {subID} does not exist (BadRequest)
/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations subscriptionQuotaId is null or empty or whitespace (Internal Server Error)
/subscriptions/{subscriptionId}/providers/Microsoft.Storage/deletedAccounts Resource provider 'Microsoft.Storage' failed to return collection response for type 'deletedAccounts' (ProviderError)
/subscriptions/{subscriptionId}/providers/Microsoft.Storage/locations/{location}/usages Subscription {subID} was not found. (SubscriptionNotFound)
/subscriptions/{subscriptionId}/providers/Microsoft.Insights/alertrules The resource type could not be found in the namespace 'Microsoft.Insights' for api version '2016-03-01'." (InvalidResourceType)

To-Dos

  • I have created tests for any new or updated functionality.
  • I ran tox successfully.

Code of Conduct

By submitting this pull request, I agree to follow the code of conduct.

Copy link
Member

@aquamatthias aquamatthias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like permissions are missing, if collection of resources is not possible with an app registration. What permissions are required?

@aquamatthias aquamatthias merged commit e0c1ae7 into main Nov 8, 2024
6 checks passed
@aquamatthias aquamatthias deleted the km/fix_azure_errors branch November 8, 2024 13:38
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

Successfully merging this pull request may close these issues.

2 participants