def METHOD_NAME(self, resource_group):
    name = self.create_random_name("cli_test", length=20)
    server = self.create_random_name("cli-test", length=20)
    location = "West US"
    self.cmd(f"staticwebapp create -n {name} -g {resource_group} -l centralus")
    server_id = self.cmd(f"cosmosdb create -n {server} -g {resource_group}").get_output_in_json()["id"]
    self.cmd(f"staticwebapp dbconnection create -n {name} -g {resource_group} -d {server_id}",
             checks=[JMESPathCheck("properties.region", location, case_sensitive=False),
                     JMESPathCheck("properties.resourceId", server_id)])