protected override void Validate(object arguments, EngineIntrinsics engineIntrinsics) { var webAppName = arguments as string; if (CmdletHelpers.IsDeploymentSlot(webAppName)) { throw new ValidationMetadataException(string.Format("Specified resource '{0}' is a non-production web app slot. Please use the AzureRMWebAppSlot cmdlets to manage this resource", webAppName)); } }