This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pool: | |
| vmImage: 'Ubuntu 16.04' | |
| variables: | |
| buildConfiguration: 'Release' | |
| steps: | |
| - script: | | |
| cd ContainerizedBuildSample | |
| dotnet build --configuration $(buildConfiguration) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0"?> | |
| <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"> | |
| <servers> | |
| <server> | |
| <id>YOUR REPOSITORY ID</id> | |
| <username>${nexusUser}</username> | |
| <password>${nexusPassword}</password> | |
| </server> | |
| </servers> | |
| </settings> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| az role definition create --role-definition @registerResources.json | |
| #assign the role to a AD group containing all your users | |
| az role assignment create --assignee "All Azure Users" --role "Register Azure resource providers" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "Name": "Register Azure resource providers", | |
| "Description": "Can register Azure resource providers", | |
| "Actions": [ "*/register/action" ], | |
| "AssignableScopes": [ | |
| "/subscriptions/[YOUR_SUBSCRIPTIONID]", | |
| "/subscriptions/[YOUR_SUBSCRIPTIONID2]" | |
| ] | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| az provider list --query "[].namespace" -o tsv | ForEach-Object { az provider register -n $_} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public async Task CreateResourceGroup(string rg, string adgroup) | |
| { | |
| ServicePrincipalLoginInformation loginInfo = new ServicePrincipalLoginInformation() | |
| { | |
| ClientId = System.Environment.GetEnvironmentVariable("ClientId", EnvironmentVariableTarget.Process), | |
| ClientSecret = System.Environment.GetEnvironmentVariable("ClientSecret", EnvironmentVariableTarget.Process) | |
| }; | |
| var credentials = new AzureCredentials(loginInfo, System.Environment.GetEnvironmentVariable("TenantId", EnvironmentVariableTarget.Process), AzureEnvironment.AzureGlobalCloud); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Linq; | |
| using System.Net; | |
| using System.Net.Http; | |
| using System.Threading.Tasks; | |
| using Microsoft.Azure.WebJobs; | |
| using Microsoft.Azure.WebJobs.Extensions.Http; | |
| using Microsoft.Azure.WebJobs.Host; | |
| using System; | |
| using Newtonsoft.Json; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [{ | |
| "topic": "/subscriptions/4562d10c-8487-4fcf-8bdf-5d9d729f5775/resourceGroups/eventgridtest-rg/providers/Microsoft.Storage/storageAccounts/eventgridtestgeert", | |
| "subject": "/blobServices/default/containers/images/blobs/IMG_0897.jpg", | |
| "eventType": "Microsoft.Storage.BlobCreated", | |
| "eventTime": "2017-12-06T14:18:40.2314711Z", | |
| "id": "84428275-001e-0069-2e9d-6eb6d9065087", | |
| "data": { | |
| "api": "PutBlob", | |
| "clientRequestId": "5a7cbec0-da90-11e7-8359-79266695df26", | |
| "requestId": "84428275-001e-0069-2e9d-6eb6d9000000", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [{ | |
| "topic": "/subscriptions/4562d10c-8487-4fcf-8bdf-5d9d729f5775/resourceGroups/eventgridtest-rg/providers/Microsoft.Storage/storageAccounts/eventgridtestgeert", | |
| "subject": "/blobServices/default/containers/images/blobs/IMG_0897.jpg", | |
| "eventType": "Microsoft.Storage.BlobDeleted", | |
| "eventTime": "2017-12-06T14:26:51.9449243Z", | |
| "id": "ac480db3-001e-0049-189e-6ecd7e0695d5", | |
| "data": { | |
| "api": "DeleteBlob", | |
| "clientRequestId": "802486c0-da91-11e7-9e23-c5fcfedfcf18", | |
| "requestId": "ac480db3-001e-0049-189e-6ecd7e000000", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Param( | |
| [string] $apiManagementRg, | |
| [string] $apiManagementName, | |
| [string] $apiUrl, | |
| [string] $apiDescriptionPath, | |
| [string] $apiName, | |
| [string] $apiId | |
| ) | |
| $ApiMgmtContext = New-AzureRmApiManagementContext -ResourceGroupName "$apiManagementRg" -ServiceName "$apiManagementName" |