summary import { KubeEnvironmentPatchResource , WebSiteManagementClient } from "@msinternal/web-resource-manager" ; import { DefaultAzureCredential } from "@azure/identity" ; async function updateKubeEnvironments ( ) { const subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345" ; const resourceGroupName = "examplerg" ; const name = "testkubeenv" ; const kubeEnvironmentEnvelope = { staticIp : "1.2.3.4" } ; const credential = new DefaultAzureCredential ( ) ; const client = new WebSiteManagementClient ( credential , subscriptionId ) ; const result = await client . kubeEnvironments . update ( resourceGroupName , name , kubeEnvironmentEnvelope ) ; console . log ( result ) ; } updateKubeEnvironments ( ) . catch ( console . error ) ;