Azure Spring Apps / App Deployment : API missing to get relativePath
- Dominant language
- Bicep
- Stars
- 3.6k
- Forks
- 830
- Avg merge
- 1d 21m
- Merged PRs (30d)
- 79
Description
**Bicep version**
```bash
az bicep version
```
```console
Bicep CLI version 0.11.1 (030248df55)
```
**Describe the bug**
I have a [Bicep snipet](https://github.com/ezYakaEagle442/azure-spring-apps-petclinic-mic-srv/blob/azure/iac/bicep/modules/asa/asa-adm-srv-deployment.bicep#L232) to create an Azure Spring Apss / App Deployment :
```sh
// https://learn.microsoft.com/en-us/azure/templates/microsoft.appplatform/2022-11-01-preview/spring/apps/deployments?pivots=deployment-language-bicep#usersourceinfo-objects
resource adminserverappdeployment 'Microsoft.AppPlatform/Spring/apps/deployments@2022-11-01-preview' = {
name: 'default'
parent: adminserverapp
sku: {
name: azureSpringAppsSkuName
}
….
source: {
version: deploymentVersion
type: 'Jar' // Jar, Container or Source [https://learn.microsoft.com/en-us/azure/templates/microsoft.appplatform/2022-11-01-preview/spring/apps/deployments?pivots=deployment-language-bicep#usersourceinfo](https://learn.microsoft.com/en-us/azure/templates/microsoft.appplatform/2022-11-01-preview/spring/apps/deployments?pivots=deployment-language-bicep#usersourceinfo)
jvmOptions: '-Xms512m -Xmx1024m -Dspring.profiles.active=mysql,key-vault,cloud'
// [https://learn.microsoft.com/en-us/rest/api/azurespringapps/apps/get-resource-upload-url?tabs=HTTP#code-try-0](https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Frest%2Fapi%2Fazurespringapps%2Fapps%2Fget-resource-upload-url%3Ftabs%3DHTTP%23code-try-0&data=05%7C01%7CXXXXXXXXXXXXXXXXXXXX%7C6ba1c341743548429ec708daf35eb3dd%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638089885656486803%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=hZBkaW6MJfx0XQkTVt9cmn0hveGmDpqwACN6ZsxKyIc%3D&reserved=0)
// should be a link to a BLOB storage
relativePath: 'https://stasapetcliasa.blob.core.windows.net/petcliasa-blob/asa-spring-petclinic-admin-server-2.6.6.jar'
runtimeVersion: 'Java_11'
}
}
}
```
There is [this API](https://learn.microsoft.com/en-us/rest/api/azurespringapps/apps/get-resource-upload-url?tabs=HTTP#code-try-0) which result provides the relativePah field , but how to get that result in Bicep ?
Without this value, it looks like there is no way to create a Deployment with Bicep which is asked by my customer.
**To Reproduce**
See snippet above
**Additional context**
This is a show stopper for my customer who wants to use Bicep only WITHOUT any extra steps in a script
Ask: this get-resource-upload-url API should be callable through Bicep
@alex-frankel
Contributor guide
Research direction
Start by reviewing the Microsoft.AppPlatform/Spring/apps/deployments@2022-11-01-preview resource shown in the issue and the Azure Spring Apps get-resource-upload-url API. Determine how that API result could be represented in Bicep, then verify that a deployment can obtain and use relativePath without an external script.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure
- Domain
- cloud
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100