This command sets the Proxy Agent settings for a virtual machine configuration object $vmconfig.
It enables the Proxy Agent, sets the Wire Server mode to "Enforce", specifies the IMDS profile.
Parameters
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with Azure.
Specifies the IMDS endpoint execution mode.
In Audit mode, the system acts as if it is enforcing the access control policy, including emitting access denial entries in the logs but it does not actually deny any requests to host endpoints.
In Enforce mode, the system will enforce the access control and it is the recommended mode of operation.
Specifies the InVMAccessControlProfileVersion resource id in the IMDS enpoint.
Format of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/inVMAccessControlProfiles/{profile}/versions/{version}
Specifies the Wire Server endpoint execution mode while creating the virtual machine or virtual machine scale set.
In Audit mode, the system acts as if it is enforcing the access control policy, including emitting access denial entries in the logs but it does not actually deny any requests to host endpoints.
In Enforce mode, the system will enforce the access control and it is the recommended mode of operation.
Specifies the InVMAccessControlProfileVersion resource id in the Wire Server endpoint.
Format of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/inVMAccessControlProfiles/{profile}/versions/{version}
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable,
-ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see
about_CommonParameters.
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.