Skip to content

ptsouk/AzurePowerShellLoginSample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

Action demonstrating the issue: Fail-AzurePowerShellLoginWithScript

Workaround: Success-AzurePowerShellLoginWithScript

Configure a service principal with a secret

`az ad sp create-for-rbac --name "myApp" --role contributor \
                        --scopes /subscriptions/{subscription-id}/resourceGroups/{resource-group} \
                        --sdk-auth`

Contents of ${{secrets.AZURE_CREDENTIALS}}

{
  "clientId": "***",
  "clientSecret": "***",
  "subscriptionId": "***",
  "tenantId": "***",
  "activeDirectoryEndpointUrl": "https://login.microsoftonline.com",
  "resourceManagerEndpointUrl": "https://management.azure.com/",
  "activeDirectoryGraphResourceId": "https://graph.windows.net/",
  "sqlManagementEndpointUrl": "https://management.core.windows.net:8443/",
  "galleryEndpointUrl": "https://gallery.azure.com/",
  "managementEndpointUrl": "https://management.core.windows.net/"
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published