Skip to content

Commit

Permalink
Various fixes on logic apps standard Azure DevOps sample (#672)
Browse files Browse the repository at this point in the history
* Various fixes on logic apps standard Azure DevOps sample

* Remove redundant encodeURIComponent

Co-authored-by: Orestis Meikopoulos <[email protected]>
  • Loading branch information
ormikopo1988 and ormikopo1988 authored Nov 11, 2022
1 parent 3aad2cf commit 00eb823
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)'

Expand Down
2 changes: 1 addition & 1 deletion azure-devops-sample/logic/EventProcessor/workflow.json
Original file line number Diff line number Diff line change
Expand Up @@ -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()}",
Expand Down
4 changes: 4 additions & 0 deletions azure-devops-sample/logic/azure.parameters.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,9 @@
"value": {
"type": "ManagedServiceIdentity"
}
},
"storage_account_name": {
"type": "String",
"value": "@appsetting('storage-account-name')"
}
}
5 changes: 4 additions & 1 deletion azure-devops-sample/logic/parameters.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
"scheme": "Key",
"parameter": "@appsetting('azureblob-connectionKey')"
}
},
"storage_account_name": {
"type": "String",
"value": "@appsetting('storage-account-name')"
}

}

0 comments on commit 00eb823

Please sign in to comment.