task

 avatar
unknown
plain_text
2 years ago
583 B
7
Indexable
      - task: AzureCLI@2
        displayName: 'Azure CLI Check Access to the Storage Account'
        inputs:
            azureSubscription: 'yourconnectionname' # Azure DevOps Azure Resource Manager Service Connection 
            scriptType: pscore
            scriptLocation: inlineScript
            inlineScript: |
              write-host ''
              write-host ' Attempting to access containers - did it work? '
              write-host ''              
              az storage blob list --container-name $(bkcontainer) --account-name $(bkstrg) --query [].name
Editor is loading...
Leave a Comment