# Cloud Configuration will be splat into parameters of `Add-AzEnvironment`. It # should be JSON in the form (not all fields are required): # { # "Name": "", # "PublishSettingsFileUrl": "", # "ServiceEndpoint": "", # "ManagementPortalUrl": "", # "ActiveDirectoryEndpoint": "", # "ActiveDirectoryServiceEndpointResourceId": "", # "ResourceManagerEndpoint": "", # "GalleryEndpoint": "", # "GraphEndpoint": "", # "GraphAudience": "", # "AzureKeyVaultDnsSuffix": "", # "AzureKeyVaultServiceEndpointResourceId": "" # } steps: - bash: sudo chown -R runner ~/.Azure displayName: (MacOS) Grant access to ~/.Azure condition: contains(variables['OSVmImage'], 'mac') - task: Powershell@2 displayName: Setup Az Modules and Dogfood Environment inputs: targetType: inline pwsh: true script: | eng/common/scripts/Import-AzModules.ps1 $environmentSpec = @" $(env-config-dogfood) "@ | ConvertFrom-Json -AsHashtable; Add-AzEnvironment @environmentSpec