Created
September 28, 2018 10:24
-
-
Save bogdanbujdea/f8f2f379d5a0f27de09eea6f351ea559 to your computer and use it in GitHub Desktop.
Stop a container group
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private void StopContainerGroup() | |
| { | |
| IAzure azure = GetAzureContext(Environment.GetEnvironmentVariable(AzureLoginPath)); | |
| var containerGroup = azure.ContainerGroups.GetByResourceGroup(ResourceGroupName, ContainerGroupName); | |
| //this will stop all the containers in that group, and billing will stop | |
| containerGroup?.Stop(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment