public override void ExecuteCmdlet() { CreatePSResourceGroupParameters parameters = new CreatePSResourceGroupParameters { ResourceGroupName = Name, Location = Location, Force = Force.IsPresent, Tag = Tag, ConfirmAction = ConfirmAction }; WriteObject(ResourcesClient.CreatePSResourceGroup(parameters)); }
protected override void ProcessRecord() { CreatePSResourceGroupParameters parameters = new CreatePSResourceGroupParameters { ResourceGroupName = Name, Location = Location, Force = Force.IsPresent, Tag = Tag, ConfirmAction = ConfirmAction }; WriteObject(ResourcesClient.CreatePSResourceGroup(parameters)); }
public override void ExecuteCmdlet() { WriteWarning("The output object type of this cmdlet will be modified in a future release. Also, the usability of Tag parameter in this cmdlet will be modified in a future release. This will impact creating, updating and appending tags for Azure resources. For more details about the change, please visit https://github.com/Azure/azure-powershell/issues/726#issuecomment-213545494"); CreatePSResourceGroupParameters parameters = new CreatePSResourceGroupParameters { ResourceGroupName = Name, Location = Location, Force = Force.IsPresent, Tag = Tag, ConfirmAction = ConfirmAction }; WriteObject(ResourcesClient.CreatePSResourceGroup(parameters)); }
public override void ExecuteCmdlet() { WriteWarning("The output object type of this cmdlet will be modified in a future release."); CreatePSResourceGroupParameters parameters = new CreatePSResourceGroupParameters { ResourceGroupName = Name, Location = Location, Force = Force.IsPresent, Tag = Tag, ConfirmAction = ConfirmAction }; WriteObject(ResourcesClient.CreatePSResourceGroup(parameters)); }
protected override void ProcessRecord() { CreatePSResourceGroupParameters parameters = new CreatePSResourceGroupParameters { ResourceGroupName = Name, Location = Location, Force = Force.IsPresent, Tag = Tag, ConfirmAction = ConfirmAction }; WriteWarning("The output object of this cmdlet will be modified in a future release."); WriteObject(ResourcesClient.CreatePSResourceGroup(parameters)); }
public override void ExecuteCmdlet() { CreatePSResourceGroupParameters parameters = new CreatePSResourceGroupParameters() { ResourceGroupName = Name, Location = Location, DeploymentName = DeploymentName, GalleryTemplateIdentity = GalleryTemplateIdentity, TemplateFile = TemplateUri ?? this.TryResolvePath(TemplateFile), TemplateParameterObject = GetTemplateParameterObject(TemplateParameterObject), TemplateVersion = TemplateVersion, StorageAccountName = StorageAccountName, Force = Force.IsPresent, ConfirmAction = ConfirmAction }; WriteObject(ResourcesClient.CreatePSResourceGroup(parameters)); }
public override void ExecuteCmdlet() { CreatePSResourceGroupParameters parameters = new CreatePSResourceGroupParameters { ResourceGroupName = Name, Location = Location, DeploymentName = DeploymentName, GalleryTemplateIdentity = GalleryTemplateIdentity, TemplateFile = TemplateUri ?? this.TryResolvePath(TemplateFile), TemplateParameterObject = GetTemplateParameterObject(TemplateParameterObject), TemplateVersion = TemplateVersion, StorageAccountName = StorageAccountName, Force = Force.IsPresent, Tag = Tag, ConfirmAction = ConfirmAction }; if(!string.IsNullOrEmpty(DeploymentName) || !string.IsNullOrEmpty(GalleryTemplateIdentity) || !string.IsNullOrEmpty(TemplateFile) || !string.IsNullOrEmpty(TemplateVersion) || TemplateParameterObject != null || !string.IsNullOrEmpty(StorageAccountName)) { WriteWarning("The deployment parameters in New-AzureResourceGroup cmdlet is being deprecated and will be removed in a future release. Please use New-AzureResourceGroupDeployment to submit deployments."); } WriteWarning("The output object of this cmdlet will be modified in a future release."); WriteObject(ResourcesClient.CreatePSResourceGroup(parameters)); }