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

Azure Bicep support to target single module to deploy? || Is there an az/bicep equivalent to terraform apply -target=module.my_app.module.something #14862

Closed
Satishlucky opened this issue Aug 19, 2024 · 2 comments
Labels
enhancement New feature or request Needs: Author Feedback Awaiting feedback from the author of the issue Status: No Recent Activity

Comments

@Satishlucky
Copy link

Satishlucky commented Aug 19, 2024

How to target particular azure bicep module using azure devops pipeline

param nsgname string = 'test-nsg'
param location string = resourceGroup().location
param VnetName string = 'test-vnet'
param VMsubnet string = 'test-subnet'
param vnetaddressPrefixes string = '10.0.0.0/16'
param subnetaddressPrefixes string = '10.0.1.0/24'

//
module nsg1 'modules/nsg.bicep' = {
  name: 'test-nsg-dep1'
  params: {
    networkSecurityGroupName: nsgname
    location:location
    networkSecurityGroupSecurityRules: [
      {
        name: 'AllowPortERFInbound'
        properties: {
        description: 'AllowPortERFInbound'
        protocol: '*'
        access: 'Allow'
        priority: 2000
        direction: 'Inbound'
        sourcePortRange: '*'
        sourcePortRanges: []
        sourceAddressPrefix:''
        sourceAddressPrefixes:['10.12.13.14']
        sourceApplicationSecurityGroups:[]
        destinationPortRange: ''
        destinationPortRanges: ['3389']
        destinationAddressPrefix: 'VirtualNetwork'
        destinationAddressPrefixes: []
        destinationApplicationSecurityGroups: []
      }
    }
    ]
  }
}

module vnet1 'vnet.bicep' = {
  name: 'VnetName-dep1'
  params: {
    location: location
    VMsubnet: VMsubnet
    VnetName: VnetName
    subnetnetaddressPrefixes:subnetaddressPrefixes
    vnetaddressPrefixes: vnetaddressPrefixes
  }
}
@stephaniezyen
Copy link
Contributor

What specific scenario are you trying to accomplish with targeting a single module to deploy vs deploying the whole file itself?

@stephaniezyen stephaniezyen added Needs: Author Feedback Awaiting feedback from the author of the issue and removed Needs: Triage 🔍 labels Aug 21, 2024
Copy link
Contributor

Hi @Satishlucky, this issue has been marked as stale because it was labeled as requiring author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within 3 days of this comment. Thanks for contributing to bicep! 😄 🦾

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Needs: Author Feedback Awaiting feedback from the author of the issue Status: No Recent Activity
Projects
Archived in project
Development

No branches or pull requests

2 participants