Open ezYakaEagle442 opened 2 years ago
@ezYakaEagle442 yes, currently we only support default
build service resource, it will be created when creating azure spring cloud service.
@zhoufenqin thank you for your quick reply but I do not understand, how then to create the buildagentpool, builder, build then with Bicep ?
Could you please paste here a Bicep snippet to implement that ?
should this be used ?
resource buildService 'Microsoft.AppPlatform/Spring/buildServices@2022-03-01-preview' existing = {
name: 'default/default'
}
should this be used ?
resource buildService 'Microsoft.AppPlatform/Spring/buildServices@2022-03-01-preview' existing = { scope: resourceGroup('my RG') name: 'default/default' }
Hi @ezYakaEagle442 I'm not familiar with Bicep, but I think it looks like
resource buildagentpool 'Microsoft.AppPlatform/Spring/buildServices/agentPools@2022-03-01-preview' = {
name: '{your-service-name}/default/default' //{your-service-name}/{build-service-name}/{agenpool-name}
properties: {
poolSize: {
name: 'S1'
}
}
location: '{your-location}',
dependsOn: [
resourceId('Microsoft.AppPlatform/Spring', {your-service-name})
]
}
you can try it.
Hi I have look the in Bicep doc for Azure Spring Cloud, there are doc for Builders but not for the parent buildService. It is because such REST API to create buildservices is missing.
As a consequence it is not possible deploy buildServices with Bicep :