...

Text file src/github.com/Azure/azure-sdk-for-go/eng/common/TestResources/setup-environments.yml

Documentation: github.com/Azure/azure-sdk-for-go/eng/common/TestResources

     1# Cloud Configuration will be splat into parameters of `Add-AzEnvironment`. It
     2# should be JSON in the form (not all fields are required):
     3# {
     4#   "Name": "<environment name>",
     5#   "PublishSettingsFileUrl": "<publish settings file url>",
     6#   "ServiceEndpoint": "<service endpoint>",
     7#   "ManagementPortalUrl": "<management portal url>",
     8#   "ActiveDirectoryEndpoint": "<active directory endpoint>",
     9#   "ActiveDirectoryServiceEndpointResourceId": "<active directory service endpoint resource id>",
    10#   "ResourceManagerEndpoint": "<resource manager endpoint>",
    11#   "GalleryEndpoint": "<gallery endpoint>",
    12#   "GraphEndpoint": "<graph endpoint>",
    13#   "GraphAudience": "<graph audience>",
    14#   "AzureKeyVaultDnsSuffix": "<key vault suffix>",
    15#   "AzureKeyVaultServiceEndpointResourceId": "<key vault service endpoint resource id>"
    16# }
    17
    18steps:
    19  - bash: sudo chown -R runner ~/.Azure
    20    displayName: (MacOS) Grant access to ~/.Azure
    21    condition: contains(variables['OSVmImage'], 'mac')
    22
    23  - task: Powershell@2
    24    displayName: Register Dogfood environment
    25    inputs:
    26      targetType: inline
    27      pwsh: true
    28      script: |
    29        eng/common/scripts/Import-AzModules.ps1
    30
    31        $environmentSpec = @"
    32          $(env-config-dogfood)
    33        "@ | ConvertFrom-Json -AsHashtable;
    34        Add-AzEnvironment @environmentSpec

View as plain text