Skip to content

Commit

Permalink
deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
hmeiland committed Jan 11, 2024
1 parent e6a9263 commit dcc352c
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 51 deletions.
2 changes: 1 addition & 1 deletion deploy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ az deployment group create \
--parameters name=amlhpc location=centralus
```

https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2Fhmeiland%2Famlhpc%2Fmaster%2Fdeploy%2Famlhpc_simple.json
[![Deploy to Azure](https://aka.ms/deploytoazurebutton)](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2Fhmeiland%2Famlhpc%2Fmaster%2Fdeploy%2Famlhpc_simple.json)
48 changes: 24 additions & 24 deletions deploy/amlhpc_simple.bicep
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
@description('Specifies the name of the deployment.')
param name string

@description('Specifies the location of the Azure Machine Learning workspace and dependent resources.')
@allowed([
'australiaeast'
'brazilsouth'
'canadacentral'
'centralus'
'eastasia'
'eastus'
'eastus2'
'francecentral'
'japaneast'
'koreacentral'
'northcentralus'
'northeurope'
'southeastasia'
'southcentralus'
'uksouth'
'westcentralus'
'westus'
'westus2'
'westeurope'
'usgovvirginia'
])
param location string
//@description('Specifies the location of the Azure Machine Learning workspace and dependent resources.')
//@allowed([
// 'australiaeast'
// 'brazilsouth'
// 'canadacentral'
// 'centralus'
// 'eastasia'
// 'eastus'
// 'eastus2'
// 'francecentral'
// 'japaneast'
// 'koreacentral'
// 'northcentralus'
// 'northeurope'
// 'southeastasia'
// 'southcentralus'
// 'uksouth'
// 'westcentralus'
// 'westus'
// 'westus2'
// 'westeurope'
// 'usgovvirginia'
//])
param location string = resourceGroup().location

var resourcePostfix = '${uniqueString(subscription().subscriptionId, resourceGroup().name)}y'

Expand Down
28 changes: 2 additions & 26 deletions deploy/amlhpc_simple.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"_generator": {
"name": "bicep",
"version": "0.24.24.22086",
"templateHash": "8452622332744006684"
"templateHash": "14919288491625898786"
}
},
"parameters": {
Expand All @@ -17,31 +17,7 @@
},
"location": {
"type": "string",
"allowedValues": [
"australiaeast",
"brazilsouth",
"canadacentral",
"centralus",
"eastasia",
"eastus",
"eastus2",
"francecentral",
"japaneast",
"koreacentral",
"northcentralus",
"northeurope",
"southeastasia",
"southcentralus",
"uksouth",
"westcentralus",
"westus",
"westus2",
"westeurope",
"usgovvirginia"
],
"metadata": {
"description": "Specifies the location of the Azure Machine Learning workspace and dependent resources."
}
"defaultValue": "[resourceGroup().location]"
}
},
"variables": {
Expand Down

0 comments on commit dcc352c

Please sign in to comment.