Skip to content

Instantly share code, notes, and snippets.

@ashishjullia
Created December 1, 2023 13:23
Show Gist options
  • Save ashishjullia/0b67839a36b6e5c18854367b889c9ab7 to your computer and use it in GitHub Desktop.
Save ashishjullia/0b67839a36b6e5c18854367b889c9ab7 to your computer and use it in GitHub Desktop.
apiVersion: 2019-12-01
location: <your_location> # Replace with your Azure region, e.g., eastus
name: <your_container_group_name> # Replace with your container group name
properties:
containers:
- name: <>
properties:
image: <>
resources:
requests:
cpu: 1.0 # Adjust as needed
memoryInGb: 1.5 # Adjust as needed
environmentVariables:
- name: <>
value: <>
ports:
- port: 80
osType: Linux
restartPolicy: Always
volumes:
- name: <>
azureFile:
shareName: <your_file_share_name> # Replace with your Azure File Share name
storageAccountName: <your_storage_account_name> # Replace with your storage account name
storageAccountKey: <your_storage_account_key> # Replace with your storage account key
ipAddress:
type: Public
ports:
- protocol: tcp
port: 80
tags:
- project: <your_project_tag> # Replace with your project tag if needed
type: Microsoft.ContainerInstance/containerGroups
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment