Skip to content

[Role] az ad/role: Azure AD Graph API to Microsoft Graph API migration#22432

Merged
jiasli merged 3 commits intoAzure:devfrom
jiasli:msgraph
May 16, 2022
Merged

[Role] az ad/role: Azure AD Graph API to Microsoft Graph API migration#22432
jiasli merged 3 commits intoAzure:devfrom
jiasli:msgraph

Conversation

@jiasli
Copy link
Member

@jiasli jiasli commented May 13, 2022

Description

Resolve #12946

According to https://docs.microsoft.com/en-us/graph/migrate-azure-ad-graph-overview

Azure Active Directory (Azure AD) Graph is deprecated but won't be retired on June 30, 2022 as previously announced. Listening closely to your feedback about the challenges of migrating such a critical dependency, we're delaying the retirement date through at least the end of this year, 2022. We’ll provide a retirement update mid-calendar year including releasing more tools to help you to migrate your apps.

This PR migrates the underlying API of az ad and az role from AD Graph API to Microsoft Graph API.

Testing Guide

az ad sp create-for-rbac
az ad app create --display-name mytestapp

# Other commands under
az ad ...
az role ...

History Notes

[Role] BREAKING CHANGE: az az/role: Migrate the underlying API of az ad and az role from AD Graph API to Microsoft Graph API. For more details, see Microsoft Graph migration

@ghost ghost requested a review from yonzhan May 13, 2022 09:32
@ghost ghost added the Auto-Assign Auto assign by bot label May 13, 2022
@ghost ghost assigned jiasli May 13, 2022
@ghost ghost added this to the May 2022 (2022-05-24) - For Build milestone May 13, 2022
@ghost ghost added the RBAC az role label May 13, 2022
@ghost ghost added Graph az ad AAD labels May 13, 2022
@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@yonzhan
Copy link
Collaborator

yonzhan commented May 13, 2022

This is huge achievement. Nice work ! !

Copy link
Member Author

Choose a reason for hiding this comment

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

The warning message has been updated.

@jiasli jiasli requested a review from chasewilson May 13, 2022 11:47
@jiasli
Copy link
Member Author

jiasli commented May 16, 2022

History notes should be added after merging this PR to bypass "Check the Format of Pull Request Title and Content".

History Notes

[Role] BREAKING CHANGE: az az/role: Migrate the underlying API of az ad and az role from AD Graph API to Microsoft Graph API. For more details, see Microsoft Graph migration

PWD_REPLACEMENT = 'replaced-microsoft-graph-password'

def __init__(self):
self._activated = False
Copy link
Member

@jsntcy jsntcy May 16, 2022

Choose a reason for hiding this comment

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

What's the purpose for _activated?

Copy link
Member Author

@jiasli jiasli May 16, 2022

Choose a reason for hiding this comment

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

This way, we can make this replacer's process_response only be called for /addPassword API, saving some time. I kept the original design of GraphClientPasswordReplacer and StorageAccountKeyReplacer.

@jiasli jiasli merged commit cac3f06 into Azure:dev May 16, 2022
@lkurzyniec
Copy link

Awesome job, great news!
Can you estimate when it will be released?

@jiasli jiasli deleted the msgraph branch May 16, 2022 15:47
@jiasli
Copy link
Member Author

jiasli commented May 16, 2022

Awesome job, great news! Can you estimate when it will be released?

Thanks @lkurzyniec. 😊 You may refer to the release schedule here: https://github.com/Azure/azure-cli/milestone/118

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AAD Auto-Assign Auto assign by bot Graph az ad RBAC az role

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Microsoft Graph API Support

9 participants