Comments (3)
@brettrowberry Farmer only "directly" takes reponsibility for generating the ARM template itself.
However, Farmer does have a simple helper function that delegates to the Azure CLI for deployment of the template, and that API does support specifying the resource group you wish to deploy to - and it will create it if it does not exist:
// Create a template for a web app in North Europe
let template =
let myWebApp = webApp {
name "mysuperwebapp"
sku WebApp.Sku.F1
}
arm {
location NorthEurope
add_resource myWebApp
}
// deploy the template to "my-resource-group"
template
|> Writer.quickDeploy "my-resource-group"
Behind the scenes quickDeploy
emits the ARM template to a file farmer-deploy.json
, before creating and executing the following batch file:
az login && az group create -l northeurope -n my-resource-group && az group deployment create -g my-resource-group --template-file farmer-deploy.json
from farmer.
that API does support specifying the resource group you wish to deploy to - and it will create it if it does not exist
Perfect!
from farmer.
Hi @isaacabraham, first thanks to your great works.
Just want to ask, what if I don't want to create new resource group but use existing resource group instead, is there any way?
thanks
from farmer.
Related Issues (20)
- Get existing project running
- Seems as if remote vnet peering for virtual networks does not support the remote vnet being in a different resource group HOT 1
- Deploying a function app overwrites the WEBSITE_CONTENTSHARE value HOT 1
- SQL Server Builder - Create System Assigned Identity HOT 3
- CosmosDB Gremlin support HOT 3
- P0V3 app service type is missing
- Add SupportsHttpsTrafficOnly property support for storage accounts
- Tests failing in CICD HOT 2
- Service Bus builder needs validation improvements
- Alert dependable on Action Group HOT 2
- App Service does not support Linux App Insights automatic instrumentation
- Upgrade to Fantomas 6
- No builder support for adding subnet per IP of LoadBalancer backendAddressPool
- PostgreSQL dependency generates incorrect path
- Details about associating web app to vnet HOT 8
- Migrate to PostgreSQL Flexible Database
- Migrate Web App to use Log Analytics + App Insights
- Dependabot update for System.Text.Json forces a library update on Farmer consumers HOT 4
- Adde Hyperscale to SQL Elastic Pool HOT 2
- Create ResourceId from ARM resource ID (relative URI) HOT 1
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 farmer.