updating login action reference on ASH sample workflow (#97)

* updating login action reference on ASH sample workflow

* added links to the official microsoft docs tutorial
This commit is contained in:
garvitarai 2021-01-21 21:21:13 -08:00 committed by GitHub
commit 1ab2192eba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -111,7 +111,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: azure/login@AzureStackSupport-Beta
- uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
environment: 'AzureStack'
@ -120,6 +120,8 @@ jobs:
az webapp list --query "[?state=='Running']"
```
Refer to the [Azure Stack Hub Login Action Tutorial](https://docs.microsoft.com/en-us/azure-stack/user/ci-cd-github-action-login-cli?view=azs-2008) for more detailed instructions.
## Configure deployment credentials:
The previous sample workflows depend on a [secrets](https://docs.github.com/en/free-pro-team@latest/actions/reference/encrypted-secrets) named `AZURE_CREDENTIALS` in your repository. The value of this secret is expected to be a JSON object that represents a service principal (an identifer for an application or process) that authenticates the workflow with Azure.