Skip to content
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

Deployment with AZ Cli and local folder #1511

Open
ShonP opened this issue Jul 7, 2024 · 0 comments
Open

Deployment with AZ Cli and local folder #1511

ShonP opened this issue Jul 7, 2024 · 0 comments

Comments

@ShonP
Copy link

ShonP commented Jul 7, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant