Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/21bshwjt/azarm
https://github.com/21bshwjt/azarm
Last synced: 1 day ago
JSON representation
- Host: GitHub
- URL: https://github.com/21bshwjt/azarm
- Owner: 21bshwjt
- Created: 2022-02-08T04:46:13.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-12-18T18:25:57.000Z (about 1 year ago)
- Last Synced: 2024-11-10T17:08:05.249Z (about 2 months ago)
- Language: PowerShell
- Size: 42 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Azure ARM Template
### Create Resource Group
```powershell
New-AzResourceGroup -Name arm-vm-vscode -Location eastus -Verbose
```
### Deploy Resource```powershell
New-AzResourceGroupDeployment -Name teststgARM -ResourceGroupName arm-vm-vscode -TemplateFile .\teststorage.json -TemplateParameterFile .\teststorage.param.json -Verbose
```
### Remove Resource Group```powershell
Remove-AzResourceGroup -Name arm-vm-vscode -Verbose
```
### Export Templete from Resource Group```powershell
Export-AzResourceGroup -ResourceGroupName polaris00123 -Path .\
```### Validate Deployment using -whatif
```powershell
New-AzResourceGroupDeployment -Name testvm -ResourceGroupName arm-vscode -TemplateFile .\winvm-template.json -TemplateParameterFile .\winvm-template.parameters.json -WhatIf -WhatIfResultFormat ResourceIdOnly
```
### Validate Deployment using -whatif -PowerShell Spatting```powershell
$parameters = @{
ResourceGroupName = "arm_storageacct3"
templatefile = ".\azdeploy.json"
templateparameterfile = ".\azdeploy.parameters.json"
DeploymentName = "ARM_StorageAccountsDeploy"
}
New-AzResourceGroupDeployment @parameters -WhatIf
```
### Validate & Deployment using -confirm
```powershell
New-AzResourceGroupDeployment -Name testvm -ResourceGroupName arm-vscode -TemplateFile .\winvm-template.json -TemplateParameterFile .\winvm-template.parameters.json -Confirm
```
### Validate Deployment using Deployment Mode
```powershell
New-AzResourceGroupDeployment -Name testvm -ResourceGroupName arm-vscode -TemplateFile .\winvm-template.json -TemplateParameterFile .\winvm-template.parameters.json -WhatIf -Mode Complete
```
```diff
- 'Complete' Mode is risky Mode. Refer MSFT kb before running that mode.
```
MSFT KB : https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/deployment-modes### Blogs
- ARM FAQS
https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/frequently-asked-questions
- ARM Template Function https://cogan.to/1c3## Wiki
https://21bshwjt.github.io/azarm/_______________________________________
### Deploy a VM to Azure using GitHub Actions
https://www.youtube.com/watch?v=0kDr9OlAzlM