Comments (5)
Feels related to Azure/bicep#2405
from bicep-types-az.
We will track the improvement on the issue linked, but will also route it to the VM Resource Provider.
from bicep-types-az.
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Drewm3, @TravisCragg-MSFT, @nikhilpatel909, @sandeepraichura, @hilaryw29, @GabstaMSFT. Please see https://aka.ms/biceptypesinfo for troubleshooting help.
Issue Details
When deploying a VM, I use a run command in my bicep template to it. I cannot use cloud-init because the commands need to run after the extensions have been successfully added. A run command will successfully provision regardless of the exit status of the script. It would be nice to have a way to fail the deployment if the runCommand.properties.instanceView.exitStatus
was not 0. Otherwise, the deployment succeeds and I think everything is good to go, when in reality the configuration failed. Below is an example:
resource configPart1 'Microsoft.Compute/virtualMachines/runCommands@2022-11-01' = {
name: 'configPart1'
parent: vm
location: location
properties: {
protectedParameters: [{
name: VAR_1
value: VALUE_1
}]
source: {
script: '/oops'
}
}
}
if (configPart1.properties.instanceView.exitStatus) {
throw error
}
Author: | matferrari-msft |
---|---|
Assignees: | - |
Labels: |
|
Milestone: | - |
from bicep-types-az.
ack, reviewing it
from bicep-types-az.
@nikhilpatel909 Is there an update on this? Thanks!
from bicep-types-az.
Related Issues (20)
- [Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers]: compositeIndexes type issue
- [Microsoft.PowerPlatform/enterprisePolicies]: Virtual Networks Object structure is incorrect
- Microsoft.ContainerRegistry/registries@2023-07-01: The property "{...}" is not allowed on objects of type "RegistryProperties"
- [Microsoft.Fabric]: The specified "object" declaration is missing the following required properties: "state"
- Second HCI deployment brokes the vm network interface HOT 1
- remoteGateways not included in Microsoft.Network/virtualNetworks/virtualNetworkPeerings@2024-01-01 resource HOT 1
- Error with creating an enterprise policy for power platform subnet injection HOT 2
- Microsoft.Web/sites/extensions: onedeploy properties are valid
- virtualMachineScaleSets health probe reference id
- Microsoft.PowerPlatform/enterprisePolicies: Problem with Microsoft provided bicep template and work around (that has 'type' issue)
- 'Microsoft.Fabric/capacities@2023-11-01': Warning for a missing property `State` while it is actually Read-Only
- [Microsoft.Sql/servers/databases]: Doesn't recognize maxCapacity for serverless
- Deploying Digital Twin Endpoints does not work through symbolic reference HOT 3
- Azure Database for PostgreSQL flexible server with private endpoint HOT 1
- BCP037 Error for Valid 'networkGroupAddressSpaceAggregationOption' Property
- [Microsoft.Graph/applications]: Missing oauth2scopes
- managedEnvironmentId not allowed on properties for functions app
- [Microsoft.Web/sites/slots@2023-12-01]: appSettings intellisense reports false warning
- Provider does not autoregister
- [registries]: virtualNetworkRules says not allowed
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bicep-types-az.