public RegenerateGatewayKey ( string resourceGroupName, string dataFactoryName, string gatewayName ) : Microsoft.Azure.Commands.DataFactories.Models.PSDataFactoryGatewayKey | ||
resourceGroupName | string | |
dataFactoryName | string | |
gatewayName | string | |
return | Microsoft.Azure.Commands.DataFactories.Models.PSDataFactoryGatewayKey |
public override void ExecuteCmdlet() { if (ParameterSetName == ByFactoryObject) { if (DataFactory == null) { throw new PSArgumentNullException(string.Format(CultureInfo.InvariantCulture, Resources.DataFactoryArgumentInvalid)); } DataFactoryName = DataFactory.DataFactoryName; ResourceGroupName = DataFactory.ResourceGroupName; } PSDataFactoryGatewayKey gatewayKey = DataFactoryClient.RegenerateGatewayKey(ResourceGroupName, DataFactoryName, GatewayName); WriteObject(gatewayKey); }
public override void ExecuteCmdlet() { WriteWarning("This cmdlet is deprecated and you should use New-AzDataFactoryGatewayAuthKey instead."); if (ParameterSetName == ByFactoryObject) { if (DataFactory == null) { throw new PSArgumentNullException(string.Format(CultureInfo.InvariantCulture, Resources.DataFactoryArgumentInvalid)); } DataFactoryName = DataFactory.DataFactoryName; ResourceGroupName = DataFactory.ResourceGroupName; } PSDataFactoryGatewayKey gatewayKey = DataFactoryClient.RegenerateGatewayKey(ResourceGroupName, DataFactoryName, GatewayName); WriteObject(gatewayKey); }