diff --git a/README.md b/README.md index 3a6a92ea..a3ec524f 100644 --- a/README.md +++ b/README.md @@ -130,6 +130,29 @@ The following steps describe how to create the service principal, assign the rol NOTE: to manage service principals created with `az ad sp create-for-rbac`, visit the [Azure portal](https://portal.azure.com), navigate to your Azure Active Directory, then select **Manage** > **App registrations** on the left-hand menu. Your service principal should appear in the list. Select a principal to navigate to its properties. You can also manage role assignments using the [az role assignment](https://docs.microsoft.com/cli/azure/role/assignment?view=azure-cli-latest) command. +## Support for using `allow-no-subscriptions` flag with az login + +Capability has been added to support access to tenants without subscriptions. This can be useful to run tenant level commands, such as 'az ad'. The action accepts an optional parameter `allow-no-subscriptions` which is `false` by default. + +```yaml +# File: .github/workflows/workflow.yml + +on: [push] + +name: AzureLoginWithNoSubscriptions + +jobs: + + build-and-deploy: + runs-on: ubuntu-latest + steps: + + - uses: azure/login@v1 + with: + creds: ${{ secrets.AZURE_CREDENTIALS }} + allow-no-subscriptions: true +``` + # Contributing This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.