Ejemplo n.º 1
0
        public void SubscriptionDeployment(string location, string templateFile, string templateParameterFile, object args)
        {
            IEnumerable <FormattableString> command = new FormattableString[] { $"az deployment sub create --location {location}" };

            command = command.Concat(SetupArgs(templateFile, templateParameterFile, args));
            shellRunner.RunProcessVoid(command, invalidExitCodeMessage: $"Error on subscripton deploy for arm template '{templateFile}' to location '{location}'.");
        }
Ejemplo n.º 2
0
        public void ResourceGroupDeployment(string resourceGroupName, string templateFile, string?templateParameterFile, object?args)
        {
            IEnumerable <FormattableString> command = new FormattableString[] { $"az deployment group create --resource-group {resourceGroupName}" };

            command = command.Concat(SetupArgs(templateFile, templateParameterFile, args));
            shellRunner.RunProcessVoid(command, invalidExitCodeMessage: $"Error on resource group deploy for arm template '{templateFile}' to resource group '{resourceGroupName}'.");
        }