Deployment with AZ Cli and local folder
- Dominant language
- No language data
- Stars
- 346
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
**Is your feature request related to a problem? Please describe.**
I'm trying to deploying my frontend with sas uri thorugh biceps, before I've used storage account but now I've migrated to static web app but I can't complete my flow
I'm trying to do something similiar to this:
`
var scriptContentToUploadFrontend = format('''
curl -o frontend.zip "{0}"
mkdir -p ./frontend
unzip -o frontend.zip -d ./frontend
az storage blob upload-batch -s ./frontend -d '$web' --account-name "{1}" --auth-mode login
''', frontendZipSasUri, storageAccountName)
resource uploadFrontendScript 'Microsoft.Resources/deploymentScripts@2020-10-01' = if (!empty(frontendZipSasUri)) {
name: 'deployFrontend'
location: resourceGroup().location
kind: 'AzureCLI'
identity: {
type: 'UserAssigned'
userAssignedIdentities: {
'${identityResourceId}': {}
}
}
properties: {
azCliVersion: '2.9.1'
timeout: 'PT30M'
cleanupPreference: 'OnSuccess'
retentionInterval: 'P1D'
scriptContent: scriptContentToUploadFrontend
}
dependsOn: [
enableAzureStaticWebsiteScript
]
}
`
its only possible with swa cli but I can't run nodejs scripts in azure deployment scripts.
**Describe the solution you'd like**
Deploy with az cli or some way to deploy thorugh biceps
**Describe alternatives you've considered**
We can't use repo publish as we publish thorugh EV2 and we need the complete deployment to be thorugh biceps/arms.
**Additional context**
None
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.