public virtual Response <KeyInfo> CreateOrUpdateFunctionSecretSlot(string keyName, KeyInfo key, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(keyName, nameof(keyName)); Argument.AssertNotNull(key, nameof(key)); using var scope = _siteSlotFunctionWebAppsClientDiagnostics.CreateScope("SiteSlotFunction.CreateOrUpdateFunctionSecretSlot"); scope.Start(); try { var response = _siteSlotFunctionWebAppsRestClient.CreateOrUpdateFunctionSecretSlot(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, keyName, key, cancellationToken); return(response); } catch (Exception e) { scope.Failed(e); throw; } }