-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DeploymentScripts] inclusion of storage account settings #9157
Merged
Merged
Changes from 8 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
6d85ce1
inclusion of storage account settings
jorgecotillo-fork 1c014a6
included examples
jorgecotillo-fork 83faf3f
removed restartPolicy
jorgecotillo-fork 400c745
updated sample response
jorgecotillo-fork 6013bc2
updated based on feedback
jorgecotillo-fork 46b0614
Merge branch 'master' of https://github.com/Azure/azure-rest-api-specs
jorgecotillo-fork 59a6dc7
renamed file
jorgecotillo-fork e81a8b9
updated file name to prevent case sensitive error
jorgecotillo-fork 51de276
Merge branch 'master' of https://github.com/Azure/azure-rest-api-specs
jorgecotillo-fork File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
116 changes: 116 additions & 0 deletions
116
...s/preview/2019-10-01-preview/examples/DeploymentScripts_Create_Using_Custom_Aci_Name.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2019-10-01-preview", | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"resourceGroupName": "script-rg", | ||
"scriptName": "MyDeploymentScript", | ||
"deploymentScript": { | ||
"kind": "AzurePowerShell", | ||
"location": "westus", | ||
"identity": { | ||
"type": "UserAssigned", | ||
"userAssignedIdentities": { | ||
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai": {} | ||
} | ||
}, | ||
"properties": { | ||
"azPowerShellVersion": "1.7.0", | ||
"scriptContent": "Param([string]$Location,[string]$Name) $deploymentScriptOutputs['test'] = 'value' Get-AzResourceGroup -Location $Location -Name $Name", | ||
"containerSettings": { | ||
"containerGroupName": "contoso-aci" | ||
}, | ||
"arguments": "-Location 'westus' -Name \"*rg2\"", | ||
"supportingScriptUris": [ | ||
"https://uri1.to.supporting.script", | ||
"https://uri2.to.supporting.script" | ||
], | ||
"retentionInterval": "PT7D", | ||
"timeout": "PT1H", | ||
"cleanupPreference": "Always" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"201": { | ||
"body": { | ||
"kind": "AzurePowerShell", | ||
"location": "westus", | ||
"identity": { | ||
"type": "UserAssigned", | ||
"userAssignedIdentities": { | ||
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai": {} | ||
} | ||
}, | ||
"systemData": { | ||
"createdBy": "string", | ||
"createdByType": "Application", | ||
"createdAt": "2020-02-01T01:01:01.1075056Z", | ||
"lastModifiedBy": "string", | ||
"lastModifiedByType": "Application", | ||
"lastModifiedAt": "2020-02-01T01:01:01.1075056Z" | ||
}, | ||
"properties": { | ||
"provisioningState": "Creating", | ||
"azPowerShellVersion": "1.7.0", | ||
"scriptContent": "Param([string]$Location,[string]$Name) $deploymentScriptOutputs['test'] = 'value' Get-AzResourceGroup -Location $Location -Name $Name", | ||
"arguments": "-Location 'westus' -Name \"*rg2\"", | ||
"supportingScriptUris": [ | ||
"https://uri1.to.supporting.script", | ||
"https://uri2.to.supporting.script" | ||
], | ||
"retentionInterval": "P7D", | ||
"timeout": "PT1H", | ||
"containerSettings": { | ||
"containerGroupName": "contoso-aci" | ||
}, | ||
"cleanupPreference": "Always", | ||
"status": { | ||
"containerInstanceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.ContainerInstance/containerGroups/scriptContainer", | ||
"storageAccountId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.Storage/storageAccounts/scriptStorage", | ||
"startTime": "2018-11-13T15:19:45-08:00", | ||
"endTime": "2018-11-13T15:19:45-08:00", | ||
"expirationTime": "2018-11-13T15:19:45-08:00" | ||
} | ||
} | ||
} | ||
}, | ||
"200": { | ||
"body": { | ||
"kind": "AzurePowerShell", | ||
"location": "westus", | ||
"identity": { | ||
"type": "UserAssigned", | ||
"userAssignedIdentities": { | ||
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai": {} | ||
} | ||
}, | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"azPowerShellVersion": "1.7.0", | ||
"scriptContent": "Param([string]$Location,[string]$Name) $deploymentScriptOutputs['test'] = 'value' Get-AzResourceGroup -Location $Location -Name $Name", | ||
"arguments": "-Location 'westus' -Name \"*rg2\"", | ||
"supportingScriptUris": [ | ||
"https://uri1.to.supporting.script", | ||
"https://uri2.to.supporting.script" | ||
], | ||
"retentionInterval": "P7D", | ||
"timeout": "PT1H", | ||
"containerSettings": { | ||
"containerGroupName": "contoso-aci" | ||
}, | ||
"cleanupPreference": "Always", | ||
"status": { | ||
"containerInstanceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.ContainerInstance/containerGroups/scriptContainer", | ||
"storageAccountId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.Storage/storageAccounts/scriptStorage", | ||
"startTime": "2018-11-13T15:19:45-08:00", | ||
"endTime": "2018-11-13T15:19:45-08:00", | ||
"expirationTime": "2018-11-13T15:19:45-08:00" | ||
}, | ||
"outputs": { | ||
"output1": "value1" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
117 changes: 117 additions & 0 deletions
117
...w/2019-10-01-preview/examples/DeploymentScripts_Create_Using_Existing_StorageAccount.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2019-10-01-preview", | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"resourceGroupName": "script-rg", | ||
"scriptName": "MyDeploymentScript", | ||
"deploymentScript": { | ||
"kind": "AzurePowerShell", | ||
"location": "westus", | ||
"identity": { | ||
"type": "UserAssigned", | ||
"userAssignedIdentities": { | ||
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai": {} | ||
} | ||
}, | ||
"properties": { | ||
"azPowerShellVersion": "1.7.0", | ||
"scriptContent": "Param([string]$Location,[string]$Name) $deploymentScriptOutputs['test'] = 'value' Get-AzResourceGroup -Location $Location -Name $Name", | ||
"storageAccountSettings": { | ||
"storageAccountName": "contosostorage", | ||
"storageAccountKey": "contosostoragekey" | ||
}, | ||
"arguments": "-Location 'westus' -Name \"*rg2\"", | ||
"supportingScriptUris": [ | ||
"https://uri1.to.supporting.script", | ||
"https://uri2.to.supporting.script" | ||
], | ||
"retentionInterval": "PT7D", | ||
"timeout": "PT1H", | ||
"cleanupPreference": "Always" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"201": { | ||
"body": { | ||
"kind": "AzurePowerShell", | ||
"location": "westus", | ||
"identity": { | ||
"type": "UserAssigned", | ||
"userAssignedIdentities": { | ||
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai": {} | ||
} | ||
}, | ||
"systemData": { | ||
"createdBy": "string", | ||
"createdByType": "Application", | ||
"createdAt": "2020-02-01T01:01:01.1075056Z", | ||
"lastModifiedBy": "string", | ||
"lastModifiedByType": "Application", | ||
"lastModifiedAt": "2020-02-01T01:01:01.1075056Z" | ||
}, | ||
"properties": { | ||
"provisioningState": "Creating", | ||
"azPowerShellVersion": "1.7.0", | ||
"scriptContent": "Param([string]$Location,[string]$Name) $deploymentScriptOutputs['test'] = 'value' Get-AzResourceGroup -Location $Location -Name $Name", | ||
"arguments": "-Location 'westus' -Name \"*rg2\"", | ||
"supportingScriptUris": [ | ||
"https://uri1.to.supporting.script", | ||
"https://uri2.to.supporting.script" | ||
], | ||
"storageAccountSettings": { | ||
"storageAccountName": "contosostorage" | ||
}, | ||
"retentionInterval": "P7D", | ||
"timeout": "PT1H", | ||
"cleanupPreference": "Always", | ||
"status": { | ||
"containerInstanceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.ContainerInstance/containerGroups/scriptContainer", | ||
"storageAccountId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.Storage/storageAccounts/scriptStorage", | ||
"startTime": "2018-11-13T15:19:45-08:00", | ||
"endTime": "2018-11-13T15:19:45-08:00", | ||
"expirationTime": "2018-11-13T15:19:45-08:00" | ||
} | ||
} | ||
} | ||
}, | ||
"200": { | ||
"body": { | ||
"kind": "AzurePowerShell", | ||
"location": "westus", | ||
"identity": { | ||
"type": "UserAssigned", | ||
"userAssignedIdentities": { | ||
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai": {} | ||
} | ||
}, | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"azPowerShellVersion": "1.7.0", | ||
"scriptContent": "Param([string]$Location,[string]$Name) $deploymentScriptOutputs['test'] = 'value' Get-AzResourceGroup -Location $Location -Name $Name", | ||
"arguments": "-Location 'westus' -Name \"*rg2\"", | ||
"supportingScriptUris": [ | ||
"https://uri1.to.supporting.script", | ||
"https://uri2.to.supporting.script" | ||
], | ||
"storageAccountSettings": { | ||
"storageAccountName": "contosostorage" | ||
}, | ||
"retentionInterval": "P7D", | ||
"timeout": "PT1H", | ||
"cleanupPreference": "Always", | ||
"status": { | ||
"containerInstanceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.ContainerInstance/containerGroups/scriptContainer", | ||
"storageAccountId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.Storage/storageAccounts/scriptStorage", | ||
"startTime": "2018-11-13T15:19:45-08:00", | ||
"endTime": "2018-11-13T15:19:45-08:00", | ||
"expirationTime": "2018-11-13T15:19:45-08:00" | ||
}, | ||
"outputs": { | ||
"output1": "value1" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add the
"x-ms-secret": true
to this property? #Resolved