diff --git a/azure-devops-sample/.pipelines/classic/templates/template-iac-logicapp.yml b/azure-devops-sample/.pipelines/classic/templates/template-iac-logicapp.yml index 39d6346..dcec495 100644 --- a/azure-devops-sample/.pipelines/classic/templates/template-iac-logicapp.yml +++ b/azure-devops-sample/.pipelines/classic/templates/template-iac-logicapp.yml @@ -70,7 +70,8 @@ jobs: - task: AzureCLI@2 inputs: - azureSubscription: 'devconnection2' + # TODO: Fill in with the name of your Azure service connection + azureSubscription: '' scriptType: 'bash' scriptLocation: 'inlineScript' inlineScript: | diff --git a/azure-devops-sample/.pipelines/classic/variables/pipeline-vars.yml b/azure-devops-sample/.pipelines/classic/variables/pipeline-vars.yml index 45b423f..b102c50 100644 --- a/azure-devops-sample/.pipelines/classic/variables/pipeline-vars.yml +++ b/azure-devops-sample/.pipelines/classic/variables/pipeline-vars.yml @@ -9,7 +9,7 @@ variables: resourceGroupLocation: 'westus' resourceGroupName: 'rg-wus-$(projectName)-$(suffix)' - # Storage - make sure this is unique! + # Storage - make sure this is unique and that the projectName you choose above is short enough, due to storage account name length restriction: https://learn.microsoft.com/en-us/azure/storage/common/storage-account-overview#storage-account-name storageName: 'sa$(projectName)$(suffix)' appServicePlanName: 'asp$(projectName)$(suffix)' diff --git a/azure-devops-sample/.pipelines/container/variables/pipeline-vars.yml b/azure-devops-sample/.pipelines/container/variables/pipeline-vars.yml index 7222a36..a09fb3b 100644 --- a/azure-devops-sample/.pipelines/container/variables/pipeline-vars.yml +++ b/azure-devops-sample/.pipelines/container/variables/pipeline-vars.yml @@ -16,7 +16,7 @@ variables: acrName: 'acrwus$(projectName)$(suffix)' acrSkuName: 'Basic' - # Storage + # Storage - make sure this is unique and that the projectName you choose above is short enough, due to storage account name length restriction: https://learn.microsoft.com/en-us/azure/storage/common/storage-account-overview#storage-account-name storageName: 'sa$(projectName)$(suffix)' appServicePlanName: 'asp$(projectName)$(suffix)' diff --git a/azure-devops-sample/logic/EventProcessor/workflow.json b/azure-devops-sample/logic/EventProcessor/workflow.json index bb94ffb..dc2c22e 100644 --- a/azure-devops-sample/logic/EventProcessor/workflow.json +++ b/azure-devops-sample/logic/EventProcessor/workflow.json @@ -27,7 +27,7 @@ "headers": { "ReadFileMetadataFromServer": true }, - "path": "/v2/datasets/@{encodeURIComponent(encodeURIComponent('sacb34ucffd7en6'))}/files", + "path": "/v2/datasets/@{encodeURIComponent(parameters('storage_account_name'))}/files", "queries": { "folderPath": "/blobs", "name": "@{utcNow()}", diff --git a/azure-devops-sample/logic/azure.parameters.json b/azure-devops-sample/logic/azure.parameters.json index 3e2a2bd..5526aa7 100644 --- a/azure-devops-sample/logic/azure.parameters.json +++ b/azure-devops-sample/logic/azure.parameters.json @@ -4,5 +4,9 @@ "value": { "type": "ManagedServiceIdentity" } + }, + "storage_account_name": { + "type": "String", + "value": "@appsetting('storage-account-name')" } } \ No newline at end of file diff --git a/azure-devops-sample/logic/parameters.json b/azure-devops-sample/logic/parameters.json index f99ab30..ef31e3d 100644 --- a/azure-devops-sample/logic/parameters.json +++ b/azure-devops-sample/logic/parameters.json @@ -6,6 +6,9 @@ "scheme": "Key", "parameter": "@appsetting('azureblob-connectionKey')" } + }, + "storage_account_name": { + "type": "String", + "value": "@appsetting('storage-account-name')" } - } \ No newline at end of file