Skip to content

Refactor and remove a custom way of getting subscriptions#1000

Merged
zikalino merged 4 commits intoAzure:masterfrom
bingosummer:aks-get-subscription
Oct 28, 2019
Merged

Refactor and remove a custom way of getting subscriptions#1000
zikalino merged 4 commits intoAzure:masterfrom
bingosummer:aks-get-subscription

Conversation

@bingosummer
Copy link
Copy Markdown
Member

@bingosummer bingosummer commented Oct 16, 2019

The same thing has been done to azure-cli.
Azure/azure-cli#10111

The issue this PR can fix:

  1. az account set -s "A"
  2. az aks create -g -n --enable-addons monitoring --subscription "B"
  3. Expected: The Log Analytics Default Workspace is created in subscription B.
    Actual: The Log Analytics Default Workspace is created in subscription A.

This checklist is used to make sure that common guidelines for a pull request are followed.

General Guidelines

  • Have you run azdev style <YOUR_EXT> locally? (pip install azdev required)
  • Have you run python scripts/ci/test_index.py -q locally?

@azuresdkci
Copy link
Copy Markdown

If this PR is for a new extension or change to an existing extension, use the following to try out the changes in this PR:

docker run -it microsoft/azure-cli:latest
export EXT=<NAME>
pip install --upgrade --target ~/.azure/cliextensions/$EXT "git+https://github.com/bingosummer/azure-cli-extensions.git@aks-get-subscription#subdirectory=src/$EXT&egg=$EXT"

@bingosummer
Copy link
Copy Markdown
Member Author

@zqingqing1 can you please have a review?

Copy link
Copy Markdown
Member

@zqingqing1 zqingqing1 left a comment

Choose a reason for hiding this comment

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

lgtm

@bingosummer
Copy link
Copy Markdown
Member Author

@zikalino could you please help review and merge the PR? Thanks!

@zikalino zikalino merged commit bbfd80b into Azure:master Oct 28, 2019
ManuInNZ pushed a commit to ManuInNZ/azure-cli-extensions that referenced this pull request Apr 11, 2020
* Refactor and remove a custom way of getting subscriptions

The same thing has been done for azure-cli:
Azure/azure-cli#10111

* remove unused-import

* Add missing line
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.

4 participants