Skip to content

Conversation

@yugangw-msft
Copy link
Contributor

With this, CLI will do exactly like the "Grant Permission" button in portal and hence both "Application" and "Delegated" permissions can be handled.

This addresses the lingering ask in #7177 and #8310

//CC @paolosalvatori @jianghaolu

  • The PR has modified HISTORY.rst describing any customer-facing, functional changes. Note that this does not include changes only to help content. (see Modifying change log).

  • I adhere to the Command Guidelines.

@tjprescott tjprescott requested a review from marstr March 18, 2019 16:51
def admin_consent(cmd, identifier):
import requests
from azure.cli.core.cloud import AZURE_PUBLIC_CLOUD
from azure.cli.core._profile import Profile
Copy link
Member

Choose a reason for hiding this comment

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

Importing from private namespaces always raises my eyebrows. Is Profile something we should bring into the public interface?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

_profile is okay to use from core command modules which role, keyvault command modules have done that already, because we are always releasing them together.

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