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

Check if managed identity exists before attempting to create it #473

Merged
merged 2 commits into from
Sep 12, 2022

Conversation

jsaun
Copy link
Contributor

@jsaun jsaun commented Sep 12, 2022

Fixes issue #316.

Deployer fails when ran multiple times with the same resource group. This fixes it by returning the existing managed id if it already exists.

async () =>
{
var identity = await azureSubscriptionClient.Identities.GetByResourceGroupAsync(configuration.ResourceGroupName, managedIdentityName);
if (identity != null)
Copy link
Contributor

Choose a reason for hiding this comment

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

add line of white space before this line

@jsaun jsaun merged commit 40eaeb3 into develop Sep 12, 2022
@jsaun jsaun deleted the jsaun/get-uami-if-exists branch September 12, 2022 18:40
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