diff --git a/checkov/arm/checks/resource/VMDisablePasswordAuthentication.py b/checkov/arm/checks/resource/VMDisablePasswordAuthentication.py index 2279fbd0027..f6181c5c979 100644 --- a/checkov/arm/checks/resource/VMDisablePasswordAuthentication.py +++ b/checkov/arm/checks/resource/VMDisablePasswordAuthentication.py @@ -12,7 +12,7 @@ def __init__(self) -> None: super().__init__(name=name, id=id, categories=categories, supported_resources=supported_resources) def scan_resource_conf(self, conf) -> CheckResult: - + osprofile = None if conf.get('properties') and isinstance(conf.get('properties'), dict): properties = conf.get('properties') if properties.get("virtualMachineProfile") and isinstance(properties.get("virtualMachineProfile"), dict):