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

Adding the refresh parameter to the list of subscriptions #135

Merged
merged 2 commits into from
Jan 5, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
27 changes: 16 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,19 @@
# Java on Azure Examples

This GitHub repository contains a set of Azure examples specifically for Java
developers to quickly get started with Azure. Please use the issue tracker to
leave feedback, file issues or to propose other examples.
This GitHub repository contains a set of Azure examples specifically for Java developers to quickly get started with Azure.
Please use the issue tracker to leave feedback, file issues or to propose other examples.

## Getting started

To work with these examples it is assumed you have the Azure CLI installed, and
you have logged in and set your default subscription. If you haven't done so
follow the steps below.
To work with these examples it is assumed you have the Azure CLI installed, and you have logged in and set your default subscription.
If you haven't done so follow the steps below.

_Note logging in and setting your default subscription needs to be done once per
terminal session._
_Note: Logging in and setting your default subscription needs to be done once per terminal session._

### Install Azure CLI

To setup the Azure CLI, please visit [Install the Azure CLI](https://docs.microsoft.com/en-us/cli/azure/install-azure-cli). And once you are done come back to this README.
To setup the Azure CLI, please visit [Install the Azure CLI](https://docs.microsoft.com/en-us/cli/azure/install-azure-cli).
And once you are done come back to this README.

### Login into Azure

Expand All @@ -26,14 +24,21 @@ To setup the Azure CLI, please visit [Install the Azure CLI](https://docs.micros

### Set your default subscription

Get a list of your subscriptions
Get a list of your subscriptions:

<!-- workflow.skip() -->
````shell
az account list --output table
````

Set your default subscription for this session using the subscription id from the previous output
If the previous list shows any old subscriptions, add the `refresh` parameter to the command, this will retrieve up-to-date subscriptions from server:

<!-- workflow.skip() -->
````shell
az account list --output table --refresh
````

Set your default subscription for this session using the subscription id from the previous output:

<!-- workflow.skip() -->
````shell
Expand Down